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