summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-10 15:18:45 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-15 14:32:29 +0200
commit9c0d69a3b2925a14b482132a827dbec8f7fc64bb (patch)
tree40093a7fd12d0a3d191695059469b8cb37705fa5
parent5efbab4ab8b844051ad289dc0f8cb6f48604c971 (diff)
downloadnextcloud-server-9c0d69a3b2925a14b482132a827dbec8f7fc64bb.tar.gz
nextcloud-server-9c0d69a3b2925a14b482132a827dbec8f7fc64bb.zip
ensure normalized path form when changing locks
-rw-r--r--lib/private/files/view.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index c5494b9b3ed..d6c33d948dc 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1694,6 +1694,7 @@ class View {
* @throws \OCP\Lock\LockedException if the path is already locked
*/
public function changeLock($path, $type) {
+ $path = Filesystem::normalizePath($path);
$absolutePath = $this->getAbsolutePath($path);
if (!$this->shouldLockFile($absolutePath)) {
return false;