From: Aryeh Gregor Date: Mon, 7 Sep 2009 00:23:04 +0000 (+0000) Subject: Don't embed ?> in string literals X-Git-Tag: 1.31.0-rc.0~39888 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=d87f3188bca03b0da2011400d5346a84cdb78c89;p=lhc%2Fweb%2Fwiklou.git Don't embed ?> in string literals It messes up some syntax highlighters for some unknown reason. --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 4caa4838dc..227224aa83 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -534,7 +534,7 @@ class Parser $matches = array(); $taglist = implode( '|', $elements ); - $start = "/<($taglist)(\\s+[^>]*?|\\s*?)(\/?>)|<(!--)/i"; + $start = "/<($taglist)(\\s+[^>]*?|\\s*?)(\/?" . ">)|<(!--)/i"; while ( '' != $text ) { $p = preg_split( $start, $text, 2, PREG_SPLIT_DELIM_CAPTURE );