Manually applying commit 0d795bfd7691109ef986e6e3922608238c95ae3f by Jason Etheridge.
authorChris Sharp <csharp@georgialibraries.org>
Wed, 1 Feb 2012 22:06:43 +0000 (17:06 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 1 Feb 2012 22:06:43 +0000 (17:06 -0500)
Open-ILS/xul/staff_client/chrome/content/util/print.js

index 6ea3a54..bd40d40 100644 (file)
@@ -97,7 +97,7 @@ util.print.prototype = {
 
     'escape_html' : function(data) {
         if (typeof data == 'null') { return ''; }
-        return data.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
+        return String(data).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
     },
 
     'simple' : function(msg,params) {