X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=redirect.php;h=626c30d3bccffdc211aabc0e9db93df03aa486c2;hb=78ea5f50b6b58d986da43a8c3b7e199a3f5231df;hp=8694e8151c57d1d876ec9d40126bd0100a4928fc;hpb=f4a62d9646631d569a7dcee0c6061d43d7025f37;p=lhc%2Fweb%2Fwiklou.git diff --git a/redirect.php b/redirect.php index 8694e8151c..626c30d3bc 100644 --- a/redirect.php +++ b/redirect.php @@ -1,17 +1,9 @@ getVal( "wpDropdown" ); +$page = $wgRequest->getVal( 'wpDropdown' ); -$url = str_replace( "$1", $page, $wgArticlePath ); +$url = str_replace( "$1", urlencode( $page ), $wgArticlePath ); header( "Location: {$url}" ); -?>