From faf2e14517b05f8c2c5016c0be11b76a02c27efd Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 29 Aug 2018 22:08:32 -0700 Subject: [PATCH] Linker: Add @return-taint for formatLinksInComment() Works around a false positive in the phan-taint-check-plugin. Bug: T202797 Change-Id: If7c9e729ca7624b3f791fe01d0b768791657277b --- includes/Linker.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index 7e565224cf..0aa8ec5649 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1212,7 +1212,8 @@ class Linker { * @param string|null $wikiId Id of the wiki to link to (if not the local wiki), * as used by WikiMap. * - * @return string + * @return string HTML + * @return-taint escapes_html */ public static function formatLinksInComment( $comment, $title = null, $local = false, $wikiId = null -- 2.20.1