From 73734c98e06c2189ae9717e66529568d7529cce5 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 23 Jul 2012 11:00:37 +0200 Subject: - remove namespace from file property name (webdav) - update script to fix broken properties in the database --- lib/connector/sabre/node.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/connector/sabre/node.php') 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 )){ -- cgit v1.2.3