From: Brion Vibber Date: Thu, 14 Oct 2004 07:49:22 +0000 (+0000) Subject: url-encode the url X-Git-Tag: 1.5.0alpha1~1542 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22statistiques_visites%22%2C%22%22%29%20.%20%22?a=commitdiff_plain;h=6a87ccc06a40a5c0b127567340f205854e0a56f9;p=lhc%2Fweb%2Fwiklou.git url-encode the url --- diff --git a/redirect.php b/redirect.php index 2f50814af3..f84d882170 100644 --- a/redirect.php +++ b/redirect.php @@ -12,7 +12,7 @@ $wgRequest = new WebRequest(); $page = $wgRequest->getVal( "wpDropdown" ); -$url = str_replace( "$1", $page, $wgArticlePath ); +$url = str_replace( "$1", urlencode( $page ), $wgArticlePath ); header( "Location: {$url}" ); ?>