summaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-11-06 18:40:45 +0000
committerBrice Maron <brice@bmaron.net>2012-11-07 15:27:34 +0100
commitba62d8dea73b768afcf41b53d0dd6eb463907dee (patch)
tree79b74e37ea816f8fe927db1e60bedfe9fd5a3d20 /lib/filecache.php
parent1910bff75ca65b8cfe992de98c2253f8285587bc (diff)
downloadnextcloud-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.php8
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'));
}
}
}