X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=redirect.php;h=eb15c6b96eb6e3fa07d9666d3f8666f3c1b574c2;hb=59953d58097084cee2a9f09ab4aaea5d5a9a9dfd;hp=6b69aee824dd216d199d82f6cb447bbdae3073f1;hpb=8f22cb45b1ccd2d18bb4ef1247a18efbb9a87e2d;p=lhc%2Fweb%2Fwiklou.git diff --git a/redirect.php b/redirect.php index 6b69aee824..eb15c6b96e 100644 --- a/redirect.php +++ b/redirect.php @@ -1,17 +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 );