Fix #361: URL in URL. Final fix !
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 1 May 2006 20:22:44 +0000 (20:22 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 1 May 2006 20:22:44 +0000 (20:22 +0000)
RELEASE-NOTES
includes/Parser.php

index 48d60b2..ef5d819 100644 (file)
@@ -179,6 +179,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 5780) Thousands and decimal separators for Norwegian
 * Updated initStats maintenance script
 * (bug 5767) Fix date formats in Vietnamese locale
+* (bug 361) URL in URL, they were almost fixed. Now they are.
 
 == Compatibility ==
 
index f35f8ec..bc204c5 100644 (file)
@@ -1235,7 +1235,7 @@ class Parser
                                        preg_match( '/^('.EXT_LINK_URL_CLASS.'+)(.*)$/s', $bits[$i + 1], $m )) 
                                {
                                        # add protocol, arg
-                                       $url .= $bits[$i] . $bits[$i + 1]; # protocol, url as arg to previous link
+                                       $url .= $bits[$i] . $m[1]; # protocol, url as arg to previous link
                                        $i += 2;
                                        $trail = $m[2];
                                }