From 49b44e7e228855a42771bce4b2bc10b2235557cb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 23 Apr 2014 16:25:29 +0200 Subject: [PATCH] Normalize paths when moving properties --- lib/private/connector/sabre/objecttree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php index 71a35e87ee..605684a779 100644 --- a/lib/private/connector/sabre/objecttree.php +++ b/lib/private/connector/sabre/objecttree.php @@ -148,7 +148,7 @@ class ObjectTree extends \Sabre_DAV_ObjectTree { // update properties $query = \OC_DB::prepare('UPDATE `*PREFIX*properties` SET `propertypath` = ?' . ' WHERE `userid` = ? AND `propertypath` = ?'); - $query->execute(array($destinationPath, \OC_User::getUser(), $sourcePath)); + $query->execute(array(\OC\Files\Filesystem::normalizePath($destinationPath), \OC_User::getUser(), \OC\Files\Filesystem::normalizePath($sourcePath))); $this->markDirty($sourceDir); $this->markDirty($destinationDir);