From 7f12d2c095634fd54689d74081211a7da6f37225 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 28 Sep 2010 19:14:52 +0000 Subject: [PATCH] Trim Amazon XML response as possible fix to a user's error --- chrome/content/zotero/xpcom/storage/zfs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js index 59d017f45e..707507d489 100644 --- a/chrome/content/zotero/xpcom/storage/zfs.js +++ b/chrome/content/zotero/xpcom/storage/zfs.js @@ -571,7 +571,7 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getFileUploadParameters = function (i try { // Strip XML declaration and convert to E4X - var xml = new XML(req.responseText.replace(/<\?xml.*\?>/, '')); + var xml = new XML(Zotero.Utilities.prototype.trim(req.responseText.replace(/<\?xml.*\?>/, ''))); } catch (e) { self.onError("Invalid response retrieving file upload parameters");