aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-11-16 08:43:48 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-11-16 08:59:47 +0000
commitf10327b245b6828be0893ed0f8c455578192f1b8 (patch)
tree19186fb92c731da4b5775756baa8f46fdbc63801
parentd334dd14552e9678b3518790b5aae97448854d66 (diff)
downloadnextcloud-server-f10327b245b6828be0893ed0f8c455578192f1b8.tar.gz
nextcloud-server-f10327b245b6828be0893ed0f8c455578192f1b8.zip
Don't throw on SHOW VERSION query
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/legacy/OC_DB.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_DB.php b/lib/private/legacy/OC_DB.php
index 390b2d3b1ea..d2606793f24 100644
--- a/lib/private/legacy/OC_DB.php
+++ b/lib/private/legacy/OC_DB.php
@@ -102,7 +102,8 @@ class OC_DB {
return true;
}
- \OC::$server->getLogger()->logException(new \Exception('Can not detect if query is manipulating: ' . $sql));
+ // This is triggered with "SHOW VERSION" and some more, so until we made a list, we keep this out.
+ // \OC::$server->getLogger()->logException(new \Exception('Can not detect if query is manipulating: ' . $sql));
return false;
}