From d62da82bf9e44d62aff287dcf64dccef35c2d693 Mon Sep 17 00:00:00 2001 From: Ole Ostergaard Date: Tue, 26 Feb 2019 14:08:39 +0100 Subject: [PATCH] Add supression of SqlInjectionChecker. Signed-off-by: Ole Ostergaard --- lib/private/DB/Adapter.php | 3 +++ lib/private/DB/AdapterPgSql.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/private/DB/Adapter.php b/lib/private/DB/Adapter.php index 139b782859..a9c20c735e 100644 --- a/lib/private/DB/Adapter.php +++ b/lib/private/DB/Adapter.php @@ -127,6 +127,9 @@ class Adapter { } } + /* + * @suppress SqlInjectionChecker + */ public function insertIgnoreConflict($table, $input) : int { try { $builder = $this->conn->getQueryBuilder(); diff --git a/lib/private/DB/AdapterPgSql.php b/lib/private/DB/AdapterPgSql.php index 86f2fe2e38..de4fca3ebf 100644 --- a/lib/private/DB/AdapterPgSql.php +++ b/lib/private/DB/AdapterPgSql.php @@ -36,6 +36,9 @@ class AdapterPgSql extends Adapter { return $statement; } + /* + * @suppress SqlInjectionChecker + */ public function insertIgnoreConflict($table, $input) : int { $builder = $this->conn->getQueryBuilder(); $builder->insert($table)