Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-07-23 13:00:37 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2012-07-23 13:00:37 +0400
commit73734c98e06c2189ae9717e66529568d7529cce5 (patch)
tree420b8654347b3efdfc05f673fd3f4bf1a126dfe7 /lib
parent93579d88dcea389205c01ddf6da41f37ad9b8745 (diff)
- remove namespace from file property name (webdav)
- update script to fix broken properties in the database
Diffstat (limited to 'lib')
-rw-r--r--lib/connector/sabre/node.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php
index c824ad0ead0..85d2160feb3 100644
--- a/lib/connector/sabre/node.php
+++ b/lib/connector/sabre/node.php
@@ -121,6 +121,7 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
public function updateProperties($properties) {
$existing = $this->getProperties(array());
foreach($properties as $propertyName => $propertyValue) {
+ $propertyName = preg_replace("/^{.*}/", "", $propertyName); // remove leading namespace from property name
// If it was null, we need to delete the property
if (is_null($propertyValue)) {
if(array_key_exists( $propertyName, $existing )){