From 060c76793301d6f3841517e444a33eb8e5316c54 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Mon, 21 May 2007 19:41:56 +0000 Subject: [PATCH] replace + with %2B in REQUEST_URI before urldecoding the title, so that literal "+" in the title works correctly --- includes/WebRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 5ba1203f02..04fe150a1b 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( $raw ) ); + $matches = array( 'title' => urldecode( str_replace("+", "%2B", $raw) ) ); if( $key ) { $matches[$key] = $keyValue; } -- 2.20.1