build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1

Change-Id: I08d38872db05669aa6200fefb410d144fccf2427
This commit is contained in:
James D. Forrester 2019-07-09 14:10:41 -07:00 committed by Daimona Eaytoy
parent 67ab74ff99
commit 85d7f039bd
2 changed files with 3 additions and 4 deletions

View File

@ -18,6 +18,6 @@
] ]
}, },
"extra": { "extra": {
"phan-taint-check-plugin": "1.5.0" "phan-taint-check-plugin": "2.0.1"
} }
} }

View File

@ -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;