X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/eaa17eb4295ff836e01883515d9d67511d0954b1..6ef1a604ec4b15522ae390d1a54cc658883ed764:/src/eu/alefzero/webdav/WebdavEntry.java diff --git a/src/eu/alefzero/webdav/WebdavEntry.java b/src/eu/alefzero/webdav/WebdavEntry.java index 29264a48..1c6ba695 100644 --- a/src/eu/alefzero/webdav/WebdavEntry.java +++ b/src/eu/alefzero/webdav/WebdavEntry.java @@ -25,6 +25,7 @@ import org.apache.jackrabbit.webdav.property.DavPropertySet; import com.owncloud.android.Log_OC; + import android.net.Uri; public class WebdavEntry { @@ -42,8 +43,10 @@ public class WebdavEntry { DavPropertySet propSet = ms.getProperties(status); @SuppressWarnings("rawtypes") DavProperty prop = propSet.get(DavPropertyName.DISPLAYNAME); - if (prop != null) + if (prop != null) { mName = (String) prop.getName().toString(); + mName = mName.substring(1, mName.length()-1); + } else { String[] tmp = mPath.split("/"); if (tmp.length > 0) @@ -89,8 +92,10 @@ public class WebdavEntry { } prop = propSet.get(DavPropertyName.GETETAG); - if (prop != null) + if (prop != null) { mEtag = (String) prop.getValue(); + mEtag = mEtag.substring(1, mEtag.length()-1); + } } else { Log_OC.e("WebdavEntry",