build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: I08d38872db05669aa6200fefb410d144fccf2427
This commit is contained in:
parent
67ab74ff99
commit
85d7f039bd
|
@ -18,6 +18,6 @@
|
|||
]
|
||||
},
|
||||
"extra": {
|
||||
"phan-taint-check-plugin": "1.5.0"
|
||||
"phan-taint-check-plugin": "2.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -119,16 +119,15 @@ class SpecialMathShowImage extends SpecialPage {
|
|||
|
||||
/**
|
||||
* Prints the specified error message as svg.
|
||||
* @param string $msg error message
|
||||
* @param string $msg error message, HTML escaped
|
||||
* @return string xml svg image with the error message
|
||||
*/
|
||||
private function printSvgError( $msg ) {
|
||||
global $wgDebugComments;
|
||||
$escaped = htmlspecialchars( $msg );
|
||||
$result = <<<SVG
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 4" preserveAspectRatio="xMidYMid meet" >
|
||||
<text text-anchor="start" fill="red" y="2">
|
||||
$escaped
|
||||
$msg
|
||||
</text>
|
||||
</svg>
|
||||
SVG;
|
||||
|
|
Loading…
Reference in New Issue