commit 8479aef5f98a7ef7823ed3eca7f0c8026a15fa33 parent d43dbefc4e6ec033504273998855028b4d32ad88 Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 4 Feb 2011 09:00:05 +0000 Possible fix for "script stack space quota is exhausted" download sync error (trunk) Diffstat:
| M | chrome/content/zotero/xpcom/sync.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -1350,7 +1350,7 @@ Zotero.Sync.Server = new function () { _error(response.firstChild.firstChild.nodeValue); } - var xml = Zotero.Utilities.trim(xmlhttp.responseText.replace(/<\?xml.*\?>\s*/, '')); + var xml = xmlhttp.responseText.replace(/^\s*<\?xml.*\?>\s*/, '').trim(); // Strip XML declaration and convert to E4X xml = new XML(xml);