mediawiki-extensions-Interwiki/includes/InterwikiLogFormatter.php
James D. Forrester bfc8a01872 build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: Ic99c6b8c0e5e9380b1bc794494a01d1896bfc4ac
2019-07-10 16:32:51 +00:00

19 lines
437 B
PHP

<?php
/**
* Needed to pass the URL as a raw parameter, because it contains $1
*/
class InterwikiLogFormatter extends LogFormatter {
/**
* @return array
* @suppress SecurityCheck-DoubleEscaped taint-check bug
*/
protected function getMessageParameters() {
$params = parent::getMessageParameters();
if ( isset( $params[4] ) ) {
$params[4] = Message::rawParam( htmlspecialchars( $params[4] ) );
}
return $params;
}
}