Permalink
Browse files

Bug #12644[url=http://www.google.nl]http://www.google.nl[/url] expand…

…s strange
  • Loading branch information...
1 parent 8a2b4b2 commit 7a2f8606a516f41b5507c6d2a2ceb994809d5f34 @CloCkWeRX CloCkWeRX committed Jan 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 HTML/BBCodeParser/Filter/Links.php
View
4 HTML/BBCodeParser/Filter/Links.php
@@ -115,7 +115,7 @@ function smarterPPLinkExpand($matches)
$c = $options['close'];
//If we have an intro tag that is [url], then skip this match
- if ($matches[1] == $o.'url'.$c) {
+ if (preg_match("/".$oe."url(=[^\s()\[\]=]+)?".$ce."/i", $matches[1])) {
return $matches[0];
}
@@ -197,4 +197,4 @@ function smarterPPLink($matches)
return $matches[6];
}
}
-?>
+?>

0 comments on commit 7a2f860

Please sign in to comment.