From 53d02f0841e3da214ce4dabe7b1b84faeb3285c2 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Mon, 21 May 2007 19:50:37 +0000 Subject: [PATCH] use rawurldecode instead of str_replace, from brion --- includes/WebRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 04fe150a1b..a5a550bfc2 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -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; } -- 2.20.1