aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorDaimona Eaytoy <daimona.wiki@gmail.com>2020-05-16 16:32:48 +0200
committerKrinkle <krinklemail@gmail.com>2020-05-21 23:31:26 +0000
commita9ba5f98a4d6548d7ca5884d3f5e55cc955d1a8b (patch)
tree706d7d112d040a69f6802d2ec0e645d3ab8094eb /includes
parent9fb14c42aaa7ce2dad48e60205f548231b673e11 (diff)
downloadmediawikicore-a9ba5f98a4d6548d7ca5884d3f5e55cc955d1a8b.tar.gz
mediawikicore-a9ba5f98a4d6548d7ca5884d3f5e55cc955d1a8b.zip
title: Mark Title::getPrefixedDBKey and ::getPrefixedText as tainted
Currently taint-check is already able to infer this, but this might change because of T203651. The Title class is just too huge for us to analyze on-demand without slowing everything down. Change-Id: I85f2ecf42b51aedda600c5aa7eca88a1d77650bd
Diffstat (limited to 'includes')
-rw-r--r--includes/Title.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/Title.php b/includes/Title.php
index 0533d81abbd5..96922503bce0 100644
--- a/includes/Title.php
+++ b/includes/Title.php
@@ -1836,6 +1836,7 @@ class Title implements LinkTarget, IDBAccessObject {
*
* @return string The prefixed title, with underscores and
* any interwiki and namespace prefixes
+ * @return-taint tainted
*/
public function getPrefixedDBkey() {
$s = $this->prefix( $this->mDbkeyform );
@@ -1848,6 +1849,7 @@ class Title implements LinkTarget, IDBAccessObject {
* This is the form usually used for display
*
* @return string The prefixed title, with spaces
+ * @return-taint tainted
*/
public function getPrefixedText() {
if ( $this->prefixedText === null ) {