X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=api.php;h=fe13263921325359393fde1ed37c79e52ebd4894;hp=0fb674b9ebe9706c746de36067fedc849f465cf5;hb=54c93f1d384cd5accd2db2ebbb911e4d627c2980;hpb=7af7bbe7476996bf60d8d8e48a84687ccd7505df diff --git a/api.php b/api.php index 0fb674b9eb..fe13263921 100644 --- a/api.php +++ b/api.php @@ -44,7 +44,7 @@ if ( !$wgRequest->checkUrlExtension() ) { // PATH_INFO can be used for stupid things. We don't support it for api.php at // all, so error out if it's present. if ( isset( $_SERVER['PATH_INFO'] ) && $_SERVER['PATH_INFO'] != '' ) { - $correctUrl = wfAppendQuery( wfScript( 'api' ), $wgRequest->getQueryValues() ); + $correctUrl = wfAppendQuery( wfScript( 'api' ), $wgRequest->getQueryValuesOnly() ); $correctUrl = wfExpandUrl( $correctUrl, PROTO_CANONICAL ); header( "Location: $correctUrl", true, 301 ); echo 'This endpoint does not support "path info", i.e. extra text between "api.php"'