summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/objecttree.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-23 16:25:29 +0200
committerRobin Appelman <icewind@owncloud.com>2014-04-24 11:12:39 +0200
commit49b44e7e228855a42771bce4b2bc10b2235557cb (patch)
tree1b3da56b4929f7a3185a533ac9e4eda14b6ceb46 /lib/private/connector/sabre/objecttree.php
parent4ba6f4839d40cea3360637b236eba9371fa390f2 (diff)
downloadnextcloud-server-49b44e7e228855a42771bce4b2bc10b2235557cb.tar.gz
nextcloud-server-49b44e7e228855a42771bce4b2bc10b2235557cb.zip
Normalize paths when moving properties
Diffstat (limited to 'lib/private/connector/sabre/objecttree.php')
-rw-r--r--lib/private/connector/sabre/objecttree.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php
index 71a35e87ee4..605684a7793 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);