Linker: Add @return-taint for formatLinksInComment()
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 30 Aug 2018 05:08:32 +0000 (22:08 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Thu, 30 Aug 2018 05:22:24 +0000 (22:22 -0700)
Works around a false positive in the phan-taint-check-plugin.

Bug: T202797
Change-Id: If7c9e729ca7624b3f791fe01d0b768791657277b

includes/Linker.php

index 7e56522..0aa8ec5 100644 (file)
@@ -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