diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-16 08:43:48 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-11-16 08:59:47 +0000 |
commit | f10327b245b6828be0893ed0f8c455578192f1b8 (patch) | |
tree | 19186fb92c731da4b5775756baa8f46fdbc63801 | |
parent | d334dd14552e9678b3518790b5aae97448854d66 (diff) | |
download | nextcloud-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.php | 3 |
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; } |