From: Jimmy Collins Date: Wed, 27 Sep 2006 17:07:50 +0000 (+0000) Subject: * (bug 7425) Preceeding whitespace in [[...]] breaks subpages X-Git-Tag: 1.31.0-rc.0~55707 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=2a13633f31785279cee368c1b1fdd9f1f211c05d;p=lhc%2Fweb%2Fwiklou.git * (bug 7425) Preceeding whitespace in [[...]] breaks subpages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a2b01ed0a4..3243d41345 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -233,6 +233,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN prevented fromm login. * (bug 6092) Introduce magic words {{REVISIONDAY}}, {{REVISIONDAY2}, {{REVISIONMONTH}}, {{REVISIONYEAR}} and {{REVISIONTIMESTAMP}} +* (bug 7425) Preceeding whitespace in [[...]] breaks subpages == Languages updated == diff --git a/includes/Parser.php b/includes/Parser.php index cb4020d652..7a84468d0b 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1852,6 +1852,9 @@ class Parser wfProfileIn( $fname ); $ret = $target; # default return value is no change + # bug 7425 + $target = trim( $target ); + # Some namespaces don't allow subpages, # so only perform processing if subpages are allowed if( $this->areSubpagesAllowed() ) {