From: River Tarnell Date: Mon, 21 May 2007 19:50:37 +0000 (+0000) Subject: use rawurldecode instead of str_replace, from brion X-Git-Tag: 1.31.0-rc.0~52835 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=53d02f0841e3da214ce4dabe7b1b84faeb3285c2;p=lhc%2Fweb%2Fwiklou.git use rawurldecode instead of str_replace, from brion --- 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; }