From 01b0ebc2a09d6398c564196c6c80406b6254be1d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 1 May 2006 20:22:44 +0000 Subject: [PATCH] Fix #361: URL in URL. Final fix ! --- RELEASE-NOTES | 1 + includes/Parser.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 48d60b2104..ef5d8192b5 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/Parser.php b/includes/Parser.php index f35f8ec0d6..bc204c51d5 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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]; } -- 2.20.1