diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 1ca18a93b..e62dbef4b 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -169,7 +169,10 @@ Zotero.Styles = new function() { var xml = enConverter.parse(); } else { // CSL - var xml = new XML(this.cleanXML(style)); + var xml = this.cleanXML(style); + if (!xml.name()) { + throw new Error("File is not XML"); + } } } catch(e) { error = e;