aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/oc-backbone-webdav.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-02-02 11:52:55 +0100
committerVincent Petry <pvince81@owncloud.com>2016-02-02 18:01:15 +0100
commitd81c00304f8af4cdbc5739d1471f0261bcca6ccf (patch)
treebc343d6cfbc3e9ff159b86b4e6fc57102b167cda /core/js/oc-backbone-webdav.js
parent3a6d065e503def8e9ca47dd6780b9ddbc0772509 (diff)
downloadnextcloud-server-d81c00304f8af4cdbc5739d1471f0261bcca6ccf.tar.gz
nextcloud-server-d81c00304f8af4cdbc5739d1471f0261bcca6ccf.zip
Fix parsing empty Webdav property nodes
Return empty string instead of undefined
Diffstat (limited to 'core/js/oc-backbone-webdav.js')
-rw-r--r--core/js/oc-backbone-webdav.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/oc-backbone-webdav.js b/core/js/oc-backbone-webdav.js
index d231a5b1ba0..ba678a32fcf 100644
--- a/core/js/oc-backbone-webdav.js
+++ b/core/js/oc-backbone-webdav.js
@@ -92,7 +92,7 @@
for (var key in propStat.properties) {
var propKey = key;
- if (davProperties[key]) {
+ if (key in davProperties) {
propKey = davProperties[key];
}
props[propKey] = propStat.properties[key];