From: River Tarnell Date: Mon, 21 May 2007 19:41:56 +0000 (+0000) Subject: replace + with %2B in REQUEST_URI before urldecoding the title, so that literal ... X-Git-Tag: 1.31.0-rc.0~52836 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=060c76793301d6f3841517e444a33eb8e5316c54;p=lhc%2Fweb%2Fwiklou.git replace + with %2B in REQUEST_URI before urldecoding the title, so that literal "+" in the title works correctly --- 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; }