From 9c0d69a3b2925a14b482132a827dbec8f7fc64bb Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Wed, 10 Jun 2015 15:18:45 +0200
Subject: [PATCH] ensure normalized path form when changing locks

---
 lib/private/files/view.php | 1 +
 1 file changed, 1 insertion(+)

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;
-- 
GitLab