summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-09 14:55:47 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-07-09 14:55:47 +0200
commit79801ad263f2862106204263a4fbd72cd343df82 (patch)
tree592c80154296c633a0c75da1349ae827122f5229
parent8a64433ec91aadad417e595ac63743d1b491b018 (diff)
downloadnextcloud-server-79801ad263f2862106204263a4fbd72cd343df82.tar.gz
nextcloud-server-79801ad263f2862106204263a4fbd72cd343df82.zip
Suppress potential SQL injection warning as they are false positives
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r--lib/private/BackgroundJob/JobList.php1
-rw-r--r--lib/private/Repair/NC14/RepairPendingCronJobs.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php
index 856354f1590..fab608cf164 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 c685cefdf86..a8ca2c75e89 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')