commit 2e951139fe7c48c757fc8cc6c1243f59764c59f2
parent ca0328729affa4b468e45e68b2066d84ee28df30
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 6 Jul 2010 18:43:15 +0000
use contentLength parameter to determine length of updateCSL.xsl rather than hardcoding a limit
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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"]