replace + with %2B in REQUEST_URI before urldecoding the title, so that literal ...
authorRiver Tarnell <river@users.mediawiki.org>
Mon, 21 May 2007 19:41:56 +0000 (19:41 +0000)
committerRiver Tarnell <river@users.mediawiki.org>
Mon, 21 May 2007 19:41:56 +0000 (19:41 +0000)
includes/WebRequest.php

index 5ba1203..04fe150 100644 (file)
@@ -122,7 +122,7 @@ class WebRequest {
                        if( substr( $path, 0, $baseLen ) == $base ) {
                                $raw = substr( $path, $baseLen );
                                if( $raw !== '' ) {
-                                       $matches = array( 'title' => urldecode( $raw ) );
+                                       $matches = array( 'title' => urldecode( str_replace("+", "%2B", $raw) ) );
                                        if( $key ) {
                                                $matches[$key] = $keyValue;
                                        }