Permalink
Browse files

Bug #12187 Quote recognition in parser is broken

  • Loading branch information...
1 parent 1560ac2 commit aed59d86c721cb052f4740f75c6f71780ba1661a @CloCkWeRX CloCkWeRX committed Jan 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 HTML/BBCodeParser.php
View
6 HTML/BBCodeParser.php
@@ -456,11 +456,11 @@ function _buildTag($str)
// tnx to Onno for the regex
// validate the arguments
$attributeArray = array();
- $regex = "![\s$oe]([a-z0-9]+)=(\"[^\s$ce]+\"|[^\s$ce]";
+ $regex = "![\s$oe]([a-z0-9]+)=(\"[^$ce]+\"|[^\s$ce]";
if ($tag['tag'] != 'url') {
$regex .= "[^=]";
}
- $regex .= "+)(?=[\s$ce])!i";
+ $regex .= "+)(?=[\s$ce])!iU";
preg_match_all($regex, $str, $attributeArray, PREG_SET_ORDER);
foreach ($attributeArray as $attribute) {
$attNam = strtolower($attribute[1]);
@@ -879,4 +879,4 @@ function staticQparse($str)
return $str;
}
}
-?>
+?>

0 comments on commit aed59d8

Please sign in to comment.