dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c30dad
)
Linker: Add @return-taint for formatLinksInComment()
author
Kunal Mehta
<legoktm@member.fsf.org>
Thu, 30 Aug 2018 05:08:32 +0000
(22:08 -0700)
committer
Kunal 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
patch
|
blob
|
history
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
7e56522
..
0aa8ec5
100644
(file)
--- 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