use rawurldecode instead of str_replace, from brion
authorRiver Tarnell <river@users.mediawiki.org>
Mon, 21 May 2007 19:50:37 +0000 (19:50 +0000)
committerRiver Tarnell <river@users.mediawiki.org>
Mon, 21 May 2007 19:50:37 +0000 (19:50 +0000)
includes/WebRequest.php

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