url-encode the url
[lhc/web/wiklou.git] / redirect.php
index 2f50814..f84d882 100644 (file)
@@ -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}" );
 ?>