X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=redirect.php;h=626c30d3bccffdc211aabc0e9db93df03aa486c2;hb=a4b89293d6d3ff78c71d45c648ecf7fb81d84cb8;hp=2f50814af3ead88c09f0112f22a5c823282cd54b;hpb=39f1d761c90a844417341c85c07d7dac1441f8e9;p=lhc%2Fweb%2Fwiklou.git diff --git a/redirect.php b/redirect.php index 2f50814af3..626c30d3bc 100644 --- a/redirect.php +++ b/redirect.php @@ -1,18 +1,9 @@ getVal( "wpDropdown" ); +$page = $wgRequest->getVal( 'wpDropdown' ); -$url = str_replace( "$1", $page, $wgArticlePath ); +$url = str_replace( "$1", urlencode( $page ), $wgArticlePath ); header( "Location: {$url}" ); -?>