mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-12-18 01:00:49 +00:00
f18556dd83
Changes to the use statements done automatically via script Change-Id: Id17b903f5656f588efa2dea0b190719e58e7b166
24 lines
529 B
PHP
24 lines
529 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Interwiki;
|
|
|
|
use LogFormatter;
|
|
use MediaWiki\Message\Message;
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
}
|