Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug #12187 Quote recognition in parser is broken

  • Loading branch information...
commit aed59d86c721cb052f4740f75c6f71780ba1661a 1 parent 1560ac2
@CloCkWeRX CloCkWeRX authored
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;
}
}
-?>
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.