From: Wil Mahan Date: Mon, 11 Oct 2004 19:15:24 +0000 (+0000) Subject: Oops, invalid chars in bracketed external links should X-Git-Tag: 1.5.0alpha1~1584 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=346f93fc27bcd9faaf8f35f9c85aafa5dfefdc8a;p=lhc%2Fweb%2Fwiklou.git Oops, invalid chars in bracketed external links should be added to the link description, not the trail. --- diff --git a/includes/Parser.php b/includes/Parser.php index e5169695d5..04ac280182 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -942,7 +942,7 @@ class Parser # removeHTMLtags()) should not be included in # URLs, per RFC 2396. if (preg_match('/&(lt|gt);/', $url, $m2, PREG_OFFSET_CAPTURE)) { - $trail = substr($url, $m2[0][1]) . $trail; + $text = substr($url, $m2[0][1]) . ' ' . $text; $url = substr($url, 0, $m2[0][1]); }