* (bug 7425) Preceeding whitespace in [[...]] breaks subpages
authorJimmy Collins <collinj@users.mediawiki.org>
Wed, 27 Sep 2006 17:07:50 +0000 (17:07 +0000)
committerJimmy Collins <collinj@users.mediawiki.org>
Wed, 27 Sep 2006 17:07:50 +0000 (17:07 +0000)
RELEASE-NOTES
includes/Parser.php

index a2b01ed..3243d41 100644 (file)
@@ -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 ==
index cb4020d..7a84468 100644 (file)
@@ -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() ) {