From c0e37c7d69196ae34a01cfda95394625d79e7c29 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 19 Jul 2012 15:03:41 +0200 Subject: [PATCH] quick fix for broken properties --- lib/connector/sabre/node.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php index 3cb5412f09..a70a1e0721 100644 --- a/lib/connector/sabre/node.php +++ b/lib/connector/sabre/node.php @@ -142,6 +142,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); // fix broken property name // If it was null, we need to delete the property if (is_null($propertyValue)) { if(array_key_exists( $propertyName, $existing )){