X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=redirect.php;h=699926ec30c39d332d401d150b7a211f6ee44230;hb=784422f5256b09db2a6f19a28190179409fba4a8;hp=6b69aee824dd216d199d82f6cb447bbdae3073f1;hpb=8f22cb45b1ccd2d18bb4ef1247a18efbb9a87e2d;p=lhc%2Fweb%2Fwiklou.git diff --git a/redirect.php b/redirect.php index 6b69aee824..699926ec30 100644 --- a/redirect.php +++ b/redirect.php @@ -1,17 +1,17 @@ getVal( "wpDropdown" ); +$page = $wgRequest->getVal( 'wpDropdown' ); -$url = str_replace( "$1", $page, $wgArticlePath ); +$url = str_replace( "$1", urlencode( $page ), $wgArticlePath ); header( "Location: {$url}" ); -?>