2017-12-16 13:14:00 +00:00
|
|
|
<?php
|
|
|
|
|
2021-03-14 05:06:15 +00:00
|
|
|
namespace MediaWiki\Extension\Interwiki;
|
|
|
|
|
|
|
|
use LogFormatter;
|
2024-06-09 09:45:34 +00:00
|
|
|
use MediaWiki\Message\Message;
|
2021-03-14 05:06:15 +00:00
|
|
|
|
2017-12-16 13:14:00 +00:00
|
|
|
/**
|
|
|
|
* Needed to pass the URL as a raw parameter, because it contains $1
|
|
|
|
*/
|
|
|
|
class InterwikiLogFormatter extends LogFormatter {
|
|
|
|
/**
|
|
|
|
* @return array
|
2019-07-09 21:08:15 +00:00
|
|
|
* @suppress SecurityCheck-DoubleEscaped taint-check bug
|
2017-12-16 13:14:00 +00:00
|
|
|
*/
|
|
|
|
protected function getMessageParameters() {
|
|
|
|
$params = parent::getMessageParameters();
|
|
|
|
if ( isset( $params[4] ) ) {
|
|
|
|
$params[4] = Message::rawParam( htmlspecialchars( $params[4] ) );
|
|
|
|
}
|
|
|
|
return $params;
|
|
|
|
}
|
|
|
|
}
|