ensure normalized path form when changing locks

This commit is contained in:
Robin Appelman 2015-06-10 15:18:45 +02:00
parent 5efbab4ab8
commit 9c0d69a3b2
1 changed files with 1 additions and 0 deletions

View File

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