[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 9652c1fbeff393cf6b2b80bb3bd32fbaec8971ca

Evergreen Git git at git.evergreen-ils.org
Fri Dec 16 14:10:12 EST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_1 has been updated
       via  9652c1fbeff393cf6b2b80bb3bd32fbaec8971ca (commit)
      from  b334f72f06831c4c497df539e9a2a35908bb85a6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9652c1fbeff393cf6b2b80bb3bd32fbaec8971ca
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Thu Dec 15 10:28:33 2011 -0500

    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 <jason at esilibrary.com>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

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 ede2749..d11602d 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,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
     },
 

-----------------------------------------------------------------------

Summary of changes:
 .../xul/staff_client/chrome/content/util/print.js  |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list