ensure normalized path form when changing locks
This commit is contained in:
parent
5efbab4ab8
commit
9c0d69a3b2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue