From 79801ad263f2862106204263a4fbd72cd343df82 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 9 Jul 2018 14:55:47 +0200 Subject: [PATCH] Suppress potential SQL injection warning as they are false positives Signed-off-by: Morris Jobke --- lib/private/BackgroundJob/JobList.php | 1 + lib/private/Repair/NC14/RepairPendingCronJobs.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index 856354f159..fab608cf16 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -180,6 +180,7 @@ class JobList implements IJobList { * get the next job in the list * * @return IJob|null + * @suppress SqlInjectionChecker */ public function getNext() { $query = $this->connection->getQueryBuilder(); diff --git a/lib/private/Repair/NC14/RepairPendingCronJobs.php b/lib/private/Repair/NC14/RepairPendingCronJobs.php index c685cefdf8..a8ca2c75e8 100644 --- a/lib/private/Repair/NC14/RepairPendingCronJobs.php +++ b/lib/private/Repair/NC14/RepairPendingCronJobs.php @@ -53,6 +53,9 @@ class RepairPendingCronJobs implements IRepairStep { return version_compare($versionFromBeforeUpdate, '14.0.0.9', '<'); } + /** + * @suppress SqlInjectionChecker + */ private function repair() { $reset = $this->connection->getQueryBuilder(); $reset->update('jobs')