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": {
|
"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.
|
* 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
|
* @return string xml svg image with the error message
|
||||||
*/
|
*/
|
||||||
private function printSvgError( $msg ) {
|
private function printSvgError( $msg ) {
|
||||||
global $wgDebugComments;
|
global $wgDebugComments;
|
||||||
$escaped = htmlspecialchars( $msg );
|
|
||||||
$result = <<<SVG
|
$result = <<<SVG
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 4" preserveAspectRatio="xMidYMid meet" >
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 4" preserveAspectRatio="xMidYMid meet" >
|
||||||
<text text-anchor="start" fill="red" y="2">
|
<text text-anchor="start" fill="red" y="2">
|
||||||
$escaped
|
$msg
|
||||||
</text>
|
</text>
|
||||||
</svg>
|
</svg>
|
||||||
SVG;
|
SVG;
|
||||||
|
|
Loading…
Reference in New Issue