diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2023-09-23 18:03:18 +0200 |
---|---|---|
committer | Daimona Eaytoy <daimona.wiki@gmail.com> | 2023-09-23 18:18:17 +0200 |
commit | ebb742d04f1dbf7e4be7d91e30edc93bc3f7a70d (patch) | |
tree | bf731293ee4a18f7230d983081a46e63422d5b24 /includes/CommentStore/CommentStore.php | |
parent | 95d75e831aeb36a0fb2a076907768eca9a385c1f (diff) | |
download | mediawikicore-ebb742d04f1dbf7e4be7d91e30edc93bc3f7a70d.tar.gz mediawikicore-ebb742d04f1dbf7e4be7d91e30edc93bc3f7a70d.zip |
Add second batch of taint-check annotations
Based on taint-check's MediaWikiSecurityCheckPlugin.php.
Bug: T321806
Change-Id: I1c86215afb531de03eae0c583de6b2866e50f9eb
Diffstat (limited to 'includes/CommentStore/CommentStore.php')
-rw-r--r-- | includes/CommentStore/CommentStore.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/CommentStore/CommentStore.php b/includes/CommentStore/CommentStore.php index ac5311d9adbb..8632fc091c3b 100644 --- a/includes/CommentStore/CommentStore.php +++ b/includes/CommentStore/CommentStore.php @@ -113,6 +113,7 @@ class CommentStore { * - joins: (array) to include in the `$join_conds` to `IDatabase->select()` or `SelectQueryBuilder::joinConds` * All tables, fields, and joins are aliased, so `+` is safe to use. * @phan-return array{tables:string[],fields:string[],joins:array} + * @return-taint none */ public function getJoin( $key ) { if ( !array_key_exists( $key, $this->joinCache ) ) { @@ -354,6 +355,7 @@ class CommentStore { * @param string|Message|CommentStoreComment|null $comment As for `self::createComment()` * @param array|null $data As for `self::createComment()` * @return array Fields for the insert or update + * @return-taint none */ public function insert( IDatabase $dbw, $key, $comment = null, $data = null ) { if ( $comment === null ) { |