mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-12-11 14:06:29 +00:00
7bb8875696
Change-Id: Ia510f65e739d21bcfd6072c82859109d05cf5dd1
24 lines
511 B
PHP
24 lines
511 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\Interwiki;
|
|
|
|
use LogFormatter;
|
|
use 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;
|
|
}
|
|
}
|