[open-ils-commits] [GIT] Evergreen ILS branch rel_2_11 updated. 668a26b8f84da809e979ee632ea54e76f49e01a3

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, rel_2_11 has been updated
       via  668a26b8f84da809e979ee632ea54e76f49e01a3 (commit)
      from  6abd086fef2dc71203271489dd4bdda0bfcdf4b7 (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 668a26b8f84da809e979ee632ea54e76f49e01a3
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