[open-ils-commits] [GIT] Evergreen ILS branch master updated. 5729e72def2bf7cc7345d93ef255d28626df0915

Evergreen Git git at git.evergreen-ils.org
Fri Dec 16 14:09:48 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, master has been updated
       via  5729e72def2bf7cc7345d93ef255d28626df0915 (commit)
      from  722e91ea874551fd00856241d3083da23fffd534 (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 5729e72def2bf7cc7345d93ef255d28626df0915
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 49fa358..b64d207 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