X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatPhp.php;h=616b341cb83655cde3b78b006210f33e6b6bd650;hb=31f66267ae9763dcecd44c1e749fe0e91b5a3a01;hp=cc0f159eef1b83668113660e379d080f7b27515e;hpb=621d00d59bf589d17cf3fa1d18fe55ad5aa91812;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatPhp.php b/includes/api/ApiFormatPhp.php index cc0f159eef..616b341cb8 100644 --- a/includes/api/ApiFormatPhp.php +++ b/includes/api/ApiFormatPhp.php @@ -30,6 +30,9 @@ class ApiFormatPhp extends ApiFormatBase { return 'application/vnd.php.serialized'; } + /** + * @suppress SecurityCheck-XSS Output type is not text/html + */ public function execute() { $params = $this->extractRequestParams(); @@ -73,8 +76,8 @@ class ApiFormatPhp extends ApiFormatBase { public function getAllowedParams() { $ret = parent::getAllowedParams() + [ 'formatversion' => [ - ApiBase::PARAM_TYPE => [ 1, 2, 'latest' ], - ApiBase::PARAM_DFLT => 1, + ApiBase::PARAM_TYPE => [ '1', '2', 'latest' ], + ApiBase::PARAM_DFLT => '1', ApiBase::PARAM_HELP_MSG => 'apihelp-php-param-formatversion', ], ];