summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-09-20 21:06:46 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-09-20 21:06:46 +0200
commita4082a526f02b7c03940582973a40d4bab8f249f (patch)
treed0b0fe2398f22f97fe62c3f11295e734c1730a39
parent1c97fd72284c17857b5879a17cf3251cdbb20450 (diff)
downloadnextcloud-server-a4082a526f02b7c03940582973a40d4bab8f249f.tar.gz
nextcloud-server-a4082a526f02b7c03940582973a40d4bab8f249f.zip
escape user column in OC_FileCache::clear
-rw-r--r--lib/filecache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index adcf97753ed..07099bcccd5 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -481,7 +481,7 @@ class OC_FileCache{
*/
public static function clear($user='') {
if($user) {
- $query=OC_DB::prepare('DELETE FROM `*PREFIX*fscache` WHERE user=?');
+ $query=OC_DB::prepare('DELETE FROM `*PREFIX*fscache` WHERE `user`=?');
$query->execute(array($user));
}else{
$query=OC_DB::prepare('DELETE FROM `*PREFIX*fscache`');