summaryrefslogtreecommitdiffstats
path: root/lib/connector
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-07-19 15:03:41 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-07-23 10:25:35 +0200
commitc0e37c7d69196ae34a01cfda95394625d79e7c29 (patch)
tree43cc33e1da8151eacfe63c4815deb91d5cf074ca /lib/connector
parent708c771296bfc839a54dce7e50fa9793fb636457 (diff)
downloadnextcloud-server-c0e37c7d69196ae34a01cfda95394625d79e7c29.tar.gz
nextcloud-server-c0e37c7d69196ae34a01cfda95394625d79e7c29.zip
quick fix for broken properties
Diffstat (limited to 'lib/connector')
-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 3cb5412f09f..a70a1e07215 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 )){