summaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
authorjfd <jfd@underverse>2012-07-30 20:46:14 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-08-24 15:08:57 +0200
commit0c0ae928dcd483211a92303eb2b202453d02a86e (patch)
treec1718762b9e7a548758deef696dc5012c39a1dfc /lib/filecache.php
parent63d6884e23081ad17f9eeb68da7478c4cb7de296 (diff)
downloadnextcloud-server-0c0ae928dcd483211a92303eb2b202453d02a86e.tar.gz
nextcloud-server-0c0ae928dcd483211a92303eb2b202453d02a86e.zip
escape all identifiers with backticks
Diffstat (limited to 'lib/filecache.php')
-rw-r--r--lib/filecache.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index 9e999f12989..719f419b37c 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -59,7 +59,7 @@ class OC_FileCache{
$root='';
}
$path=$root.$path;
- $query=OC_DB::prepare('SELECT ctime,mtime,mimetype,size,encrypted,versioned,writable FROM *PREFIX*fscache WHERE path_hash=?');
+ $query=OC_DB::prepare('SELECT `ctime`,`mtime`,`mimetype`,`size`,`encrypted`,`versioned`,`writable` FROM `*PREFIX*fscache` WHERE `path_hash`=?');
$result=$query->execute(array(md5($path)))->fetchRow();
if(is_array($result)){
return $result;
@@ -206,12 +206,12 @@ class OC_FileCache{
$path=$root.$file;
self::delete(self::getFileId($path));
}elseif($file!=-1){
- $query=OC_DB::prepare('SELECT id FROM *PREFIX*fscache WHERE parent=?');
+ $query=OC_DB::prepare('SELECT `id` FROM `*PREFIX*fscache` WHERE `parent`=?');
$result=$query->execute(array($file));
while($child=$result->fetchRow()){
self::delete(intval($child['id']));
}
- $query=OC_DB::prepare('DELETE FROM *PREFIX*fscache WHERE id=?');
+ $query=OC_DB::prepare('DELETE FROM `*PREFIX*fscache` WHERE `id`=?');
$query->execute(array($file));
}
}