Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…s strange
  • Loading branch information...
commit 7a2f8606a516f41b5507c6d2a2ceb994809d5f34 1 parent 8a2b4b2
@CloCkWeRX CloCkWeRX authored
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];
}
}
-?>
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.