X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=api.php;h=6f4bac39015dd00d88e5678372a931f32fcdc4b4;hp=f9f6175cb72ebe6328be4707beb72c53fb754237;hb=79541e1c2f19388f8e3c1ae65f0dad0673e750ee;hpb=b7ce7aacb0fb6803d9135f465e9cf6b48912883e diff --git a/api.php b/api.php index f9f6175cb7..6f4bac3901 100644 --- a/api.php +++ b/api.php @@ -45,7 +45,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"'