From 9652c1fbeff393cf6b2b80bb3bd32fbaec8971ca Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 15 Dec 2011 10:28:33 -0500 Subject: [PATCH] turn objects (such as null) into empty strings when they're being treated as strings (with escape_html) during printing Signed-off-by: Jason Etheridge Signed-off-by: Bill Erickson --- Open-ILS/xul/staff_client/chrome/content/util/print.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/print.js b/Open-ILS/xul/staff_client/chrome/content/util/print.js index ede2749235..d11602d8ac 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/print.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/print.js @@ -96,6 +96,7 @@ util.print.prototype = { }, 'escape_html' : function(data) { + if (typeof data == 'object') { return ''; } return data.replace(/&/g,'&').replace(//g,'>'); }, -- 2.11.0