From 18ba973c1376d3c83fae66d94918d03287ee3448 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 21 Jul 2017 14:45:49 +0200 Subject: [PATCH] Fix missing escape on column and table name Signed-off-by: Joas Schilling --- tests/lib/Files/Config/UserMountCacheTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/Files/Config/UserMountCacheTest.php b/tests/lib/Files/Config/UserMountCacheTest.php index f38bd3fcdc3..7df2598106a 100644 --- a/tests/lib/Files/Config/UserMountCacheTest.php +++ b/tests/lib/Files/Config/UserMountCacheTest.php @@ -331,7 +331,7 @@ class UserMountCacheTest extends TestCase { $id = (int)$this->connection->lastInsertId('*PREFIX*filecache'); $this->fileIds[] = $id; } else { - $sql = 'SELECT fileid FROM *PREFIX*filecache WHERE `storage` = ? AND `path_hash` =?'; + $sql = 'SELECT `fileid` FROM `*PREFIX*filecache` WHERE `storage` = ? AND `path_hash` =?'; $query = $this->connection->prepare($sql); $query->execute([$storageId, md5($internalPath)]); return (int)$query->fetchColumn(); -- 2.39.5