From 2e951139fe7c48c757fc8cc6c1243f59764c59f2 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 6 Jul 2010 18:43:15 +0000 Subject: [PATCH] use contentLength parameter to determine length of updateCSL.xsl rather than hardcoding a limit --- chrome/content/zotero/xpcom/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 28453145e5..45d05b0ba1 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -401,7 +401,7 @@ function() { let channel = protHandler.newChannel(protHandler.newURI("chrome://zotero/content/updateCSL.xsl", "UTF-8", null)); let updateXSLT = Components.classes["@mozilla.org/xmlextras/domparser;1"] .createInstance(Components.interfaces.nsIDOMParser) - .parseFromStream(channel.open(), "UTF-8", 32768, "application/xml"); + .parseFromStream(channel.open(), "UTF-8", channel.contentLength, "application/xml"); // load XSLT file into XSLTProcessor Zotero.Styles.xsltProcessor = Components.classes["@mozilla.org/document-transformer;1?type=xslt"]