Trim Amazon XML response as possible fix to a user's error

This commit is contained in:
Dan Stillman 2010-09-28 19:14:52 +00:00
parent 16d595ca67
commit 7f12d2c095

View file

@ -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");