From 0d77bd8168ed4a66c2f9f759b87ac0405faa8efe Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Fri, 12 Aug 2011 15:47:25 -0400 Subject: [PATCH] Don't escape_html numbers in util/print.js Signed-off-by: Thomas Berezansky Signed-off-by: Jason Etheridge --- Open-ILS/xul/staff_client/chrome/content/util/print.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 068eab0399..5c24b03e85 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/print.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/print.js @@ -301,7 +301,7 @@ util.print.prototype = { for (var i in params.data) { var re = new RegExp('%'+i+'%',"g"); if (typeof params.data[i] == 'string' || typeof params.data[i] == 'number') { - try{b = s; s=s.replace(re, this.escape_html(params.data[i]));} + try{b = s; s=s.replace(re, (typeof params.data[i] == 'string' ? this.escape_html(params.data[i]) : params.data[i]));} catch(E){s = b; this.error.standard_unexpected_error_alert('print.js, template_sub(): 3 string = <' + s + '>',E);} } else { /* likely a null, print as an empty string */ -- 2.43.2