Handle URL-encoded 'href' values in PROPFIND request
This commit is contained in:
parent
d0e4852be6
commit
21e7fe1fbc
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue