From 8479aef5f98a7ef7823ed3eca7f0c8026a15fa33 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 4 Feb 2011 09:00:05 +0000 Subject: [PATCH] Possible fix for "script stack space quota is exhausted" download sync error (trunk) --- 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 index c4e847ff5f..b9cdabafe6 100644 --- 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);