From 2a13633f31785279cee368c1b1fdd9f1f211c05d Mon Sep 17 00:00:00 2001 From: Jimmy Collins Date: Wed, 27 Sep 2006 17:07:50 +0000 Subject: [PATCH] * (bug 7425) Preceeding whitespace in [[...]] breaks subpages --- RELEASE-NOTES | 1 + includes/Parser.php | 3 +++ 2 files changed, 4 insertions(+) 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() ) { -- 2.20.1