Last modified: 2011-03-13 18:04:30 UTC
The new WebRequest::interpolateTitle method in 1.11 passes at least 2 arguments to WebRequest::extractTitle:
$path and $wgArticlePath
$path is urlencoded, $wgArticlePath is not.
WebRequest:extractTitle does a substring comparison on the two arguments. This works fine if there were no urlencoded characters in $path. But as soon as $path has a %20 or the like, WebRequest:extractTitle returns false, so WebRequest::interpolateTitle doesn't populate $_GET, so mediawiki redirects over and over trying to populate $_GET.
For my uses and simple testing so far, this solution seems to have worked:
In includes/WebRequest.php on line 53 change:
$path = $a['path'];
$path = urldecode($a['path']);
Thank you for your time in looking at this.
$wgArticlePath *should* be properly URL-encoded, as it's used to construct URLs.
The installer may not be putting together a proper default $wgScriptPath, however... Linking this bug to bug 10787, which has some further discussion on the matter.
$wgArticlePath should already be encoded, rather than having the code waste the time encoding it.