Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
SpamBlacklistLogFormatter | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getMessageParameters | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\SpamBlacklist; |
4 | |
5 | use LogFormatter; |
6 | use MediaWiki\Message\Message; |
7 | |
8 | class SpamBlacklistLogFormatter extends LogFormatter { |
9 | /** |
10 | * @return array |
11 | * @suppress SecurityCheck-DoubleEscaped Known taint-check bug |
12 | */ |
13 | protected function getMessageParameters() { |
14 | $params = parent::getMessageParameters(); |
15 | $params[3] = Message::rawParam( htmlspecialchars( $params[3] ) ); |
16 | return $params; |
17 | } |
18 | |
19 | } |