diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-23 11:00:37 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-23 11:00:37 +0200 |
commit | 73734c98e06c2189ae9717e66529568d7529cce5 (patch) | |
tree | 420b8654347b3efdfc05f673fd3f4bf1a126dfe7 /lib/connector | |
parent | 93579d88dcea389205c01ddf6da41f37ad9b8745 (diff) | |
download | nextcloud-server-73734c98e06c2189ae9717e66529568d7529cce5.tar.gz nextcloud-server-73734c98e06c2189ae9717e66529568d7529cce5.zip |
- remove namespace from file property name (webdav)
- update script to fix broken properties in the database
Diffstat (limited to 'lib/connector')
-rw-r--r-- | lib/connector/sabre/node.php | 1 |
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 )){ |