diff options
author | Brice Maron <brice@bmaron.net> | 2012-11-06 18:40:45 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-11-07 15:27:34 +0100 |
commit | ba62d8dea73b768afcf41b53d0dd6eb463907dee (patch) | |
tree | 79b74e37ea816f8fe927db1e60bedfe9fd5a3d20 /lib/filecache.php | |
parent | 1910bff75ca65b8cfe992de98c2253f8285587bc (diff) | |
download | nextcloud-server-ba62d8dea73b768afcf41b53d0dd6eb463907dee.tar.gz nextcloud-server-ba62d8dea73b768afcf41b53d0dd6eb463907dee.zip |
Fix quoting problem in fs mount. give Big DB error at least in PG
Diffstat (limited to 'lib/filecache.php')
-rw-r--r-- | lib/filecache.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index 6263e03fc64..4a7dbd0250d 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -502,11 +502,11 @@ class OC_FileCache{ */ public static function triggerUpdate($user='') { if($user) { - $query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `mtime`=0 WHERE `user`=? AND `mimetype`="httpd/unix-directory"'); - $query->execute(array($user)); + $query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `mtime`=0 WHERE `user`=? AND `mimetype`= ? '); + $query->execute(array($user,'httpd/unix-directory')); }else{ - $query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `mtime`=0 AND `mimetype`="httpd/unix-directory"'); - $query->execute(); + $query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `mtime`=0 AND `mimetype`= ? '); + $query->execute(array('httpd/unix-directory')); } } } |