From 6a87ccc06a40a5c0b127567340f205854e0a56f9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 14 Oct 2004 07:49:22 +0000 Subject: [PATCH] url-encode the url --- redirect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" ); ?> -- 2.20.1