Normalize paths when moving properties

This commit is contained in:
Robin Appelman 2014-04-23 16:25:29 +02:00
parent 4ba6f4839d
commit 49b44e7e22
1 changed files with 1 additions and 1 deletions

View File

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