From d9b730de44fa3ff9e1cf2b2b8db9027a7f60648f Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Wed, 8 Aug 2018 19:33:00 +0200 Subject: [PATCH] Add phan-taint-check-plugin Change-Id: Id410e41889bc6e4920c15c56d507c2f59601ec88 --- composer.json | 3 +++ includes/TemplateStylesHooks.php | 1 + 2 files changed, 4 insertions(+) diff --git a/composer.json b/composer.json index 61ec70e..af65aad 100644 --- a/composer.json +++ b/composer.json @@ -20,5 +20,8 @@ "phpcs -p -s", "minus-x check ." ] + }, + "extra": { + "phan-taint-check-plugin": "1.3.0" } } diff --git a/includes/TemplateStylesHooks.php b/includes/TemplateStylesHooks.php index 58587ca..f15d7b6 100644 --- a/includes/TemplateStylesHooks.php +++ b/includes/TemplateStylesHooks.php @@ -195,6 +195,7 @@ class TemplateStylesHooks { * @param Parser $parser * @param PPFrame $frame * @return string HTML + * @suppress SecurityCheck-XSS */ public static function handleTag( $text, $params, $parser, $frame ) { global $wgContLang;