mirror of
https://github.com/nextcloud/server.git
synced 2024-09-10 15:07:19 +02:00
Fix quoting problem in fs mount. give Big DB error at least in PG
This commit is contained in:
parent
1910bff75c
commit
ba62d8dea7
@ -502,11 +502,11 @@ class OC_FileCache{
|
|||||||
*/
|
*/
|
||||||
public static function triggerUpdate($user='') {
|
public static function triggerUpdate($user='') {
|
||||||
if($user) {
|
if($user) {
|
||||||
$query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `mtime`=0 WHERE `user`=? AND `mimetype`="httpd/unix-directory"');
|
$query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `mtime`=0 WHERE `user`=? AND `mimetype`= ? ');
|
||||||
$query->execute(array($user));
|
$query->execute(array($user,'httpd/unix-directory'));
|
||||||
}else{
|
}else{
|
||||||
$query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `mtime`=0 AND `mimetype`="httpd/unix-directory"');
|
$query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `mtime`=0 AND `mimetype`= ? ');
|
||||||
$query->execute();
|
$query->execute(array('httpd/unix-directory'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user