Possible fix for "script stack space quota is exhausted" download sync error (trunk)

This commit is contained in:
Dan Stillman 2011-02-04 09:00:05 +00:00
parent d43dbefc4e
commit 8479aef5f9

View file

@ -1350,7 +1350,7 @@ Zotero.Sync.Server = new function () {
_error(response.firstChild.firstChild.nodeValue); _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 // Strip XML declaration and convert to E4X
xml = new XML(xml); xml = new XML(xml);