commit 21e7fe1fbc8f03d90dbee67eb4d4bde78ef8d2a0 parent d0e4852be687401337c59f0e8a280d378ec0fd7f Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 16 Sep 2008 21:43:11 +0000 Handle URL-encoded 'href' values in PROPFIND request Diffstat:
| M | chrome/content/zotero/xpcom/storage.js | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -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);