Permalink
Browse files

Revert changes for Bug #12187 Quote recognition in parser is broken

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

0 comments on commit 3d65eba

Please sign in to comment.