From 02de20bddbc6f0c1f988b3e886f92ea0d882c972 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 6 Aug 2015 12:59:56 +0000 Subject: [PATCH] * Filemanager/WebDAV: rename of a file or directory removed other files with names only differing in case eg. "test" and "Test" --- api/src/Vfs/Sqlfs/StreamWrapper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Vfs/Sqlfs/StreamWrapper.php b/api/src/Vfs/Sqlfs/StreamWrapper.php index 645ddcb275..b03f1461fe 100644 --- a/api/src/Vfs/Sqlfs/StreamWrapper.php +++ b/api/src/Vfs/Sqlfs/StreamWrapper.php @@ -657,7 +657,8 @@ class StreamWrapper implements Vfs\StreamWrapperIface unset(self::$stat_cache[$path_from]); unset(self::$stat_cache[$path_to]); - $stmt = self::$pdo->prepare('UPDATE '.self::TABLE.' SET fs_dir=:fs_dir,fs_name=:fs_name WHERE fs_dir=:old_dir AND fs_name=:old_name'); + $stmt = self::$pdo->prepare('UPDATE '.self::TABLE.' SET fs_dir=:fs_dir,fs_name=:fs_name'. + ' WHERE fs_dir=:old_dir AND fs_name'.self::$case_sensitive_equal.':old_name'); $ok = $stmt->execute(array( 'fs_dir' => $to_dir_stat['ino'], 'fs_name' => Vfs::basename($path_to),