Handle URL-encoded 'href' values in PROPFIND request

This commit is contained in:
Dan Stillman 2008-09-16 21:43:11 +00:00
parent d0e4852be6
commit 21e7fe1fbc

View file

@ -429,7 +429,10 @@ Zotero.Sync.Storage = new function () {
}
// Relative
else if (href.firstChild.nodeValue != uri.path) {
_error("DAV:href does not match path in " + funcName);
// Try URL-encoded as well
if (decodeURIComponent(href.firstChild.nodeValue) != uri.path) {
_error("DAV:href does not match path in " + funcName);
}
}
var modified = response.getElementsByTagNameNS(dcterms, "modified").item(0);