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

Evergreen Git git at git.evergreen-ils.org
Mon Feb 27 10:06:22 EST 2017


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  c8447472bfaba306772d7d08042ba8efd943b152 (commit)
      from  4b163210e0e043f7df5a2c4f831dda0432e495a7 (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 c8447472bfaba306772d7d08042ba8efd943b152
Author: Jason Boyer <jboyer at library.in.gov>
Date:   Mon Feb 13 16:59:01 2017 -0500

    LP1371772: Correct Escape of Library Info URL
    
    Using the url filter in TT2 causes named anchors to
    be escaped in such a way that urls including them
    will likely return a 404. Since the url is being
    used in an html document, the html filter is
    sufficient and allows the url to work as intended.
    
    Signed-off-by: Jason Boyer <jboyer at library.in.gov>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/templates/opac/parts/library/core_info.tt2 b/Open-ILS/src/templates/opac/parts/library/core_info.tt2
index a47d68f..cdaf047 100644
--- a/Open-ILS/src/templates/opac/parts/library/core_info.tt2
+++ b/Open-ILS/src/templates/opac/parts/library/core_info.tt2
@@ -11,7 +11,7 @@
     [%-
         lib_url = ctx.get_org_setting(ctx.library.id, 'lib.info_url');
         IF lib_url;
-            '<div id="library-url"><a href="'; lib_url | url; '" property="url">'; l('Library web site'); '</a></div>';
+            '<div id="library-url"><a href="'; lib_url | html; '" property="url">'; l('Library web site'); '</a></div>';
         END;
     -%]
 

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

Summary of changes:
 .../src/templates/opac/parts/library/core_info.tt2 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list