Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
InterwikiLogFormatter | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
getMessageParameters | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | use MediaWiki\Message\Message; |
4 | |
5 | /** |
6 | * LogFormatter for interwiki/* logs |
7 | * |
8 | * @since 1.44 |
9 | */ |
10 | class InterwikiLogFormatter extends LogFormatter { |
11 | /** |
12 | * @return array |
13 | * @suppress SecurityCheck-DoubleEscaped taint-check bug |
14 | */ |
15 | protected function getMessageParameters() { |
16 | $params = parent::getMessageParameters(); |
17 | // Needed to pass the URL as a raw parameter, because it contains $1 |
18 | if ( isset( $params[4] ) ) { |
19 | $params[4] = Message::rawParam( htmlspecialchars( $params[4] ) ); |
20 | } |
21 | return $params; |
22 | } |
23 | } |