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