From 21e7fe1fbc8f03d90dbee67eb4d4bde78ef8d2a0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 16 Sep 2008 21:43:11 +0000 Subject: [PATCH] Handle URL-encoded 'href' values in PROPFIND request --- 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 index bbde22f22..8495bf66b 100644 --- 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);