escape user column in OC_FileCache::clear
This commit is contained in:
parent
1c97fd7228
commit
a4082a526f
1 changed files with 1 additions and 1 deletions
|
@ -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`');
|
||||
|
|
Loading…
Reference in a new issue