[Pkg-owncloud-commits] [owncloud] 46/394: Fix quoting problem in fs mount. give Big DB error at least in PG
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:24 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 189e8ab1e0b46e7310567c8b19168d97264cae60
Author: Brice Maron <brice at bmaron.net>
Date: Tue Nov 6 18:40:45 2012 +0000
Fix quoting problem in fs mount. give Big DB error at least in PG
---
lib/filecache.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/filecache.php b/lib/filecache.php
index 689ea12..9ce94c6 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -496,11 +496,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'));
}
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list