From 41e1570e663ccf7bc626ca918a409f5c6bf42b67 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 25 Apr 2007 23:09:53 +0000 Subject: [PATCH] Fix >4K truncation problem for CSLs, since this was never fixed --- chrome/content/zotero/xpcom/schema.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index a5ee3fdca..28b277a69 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -668,6 +668,10 @@ Zotero.Schema = new function(){ * update the local csl table with the style data **/ function _styleXMLToDB(xmlnode){ + // Don't split >4K chunks into multiple nodes + // https://bugzilla.mozilla.org/show_bug.cgi?id=194231 + xmlnode.normalize(); + var sqlValues = [ {string: xmlnode.getAttribute('id')}, {string: xmlnode.getAttribute('updated')},