From: miker Date: Mon, 12 Apr 2010 15:00:29 +0000 (+0000) Subject: Patch from Galen Charlton: X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c96701625db933b4f2862ae1660644bb7d3ab9fa;p=evergreen%2Fmasslnc.git Patch from Galen Charlton: This patch adds additional calls to escape_xml to handle cases where patron or library data could contain ampersand or other characters that need to be converted to entities. Issue discovered by Bibliomation; patch includes contributions by Ben Ostrowsky. git-svn-id: svn://svn.open-ils.org/ILS/trunk@16204 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/templates/overdue_combined_xml.example b/Open-ILS/examples/templates/overdue_combined_xml.example index 3388137b6f..aaf861bded 100644 --- a/Open-ILS/examples/templates/overdue_combined_xml.example +++ b/Open-ILS/examples/templates/overdue_combined_xml.example @@ -15,26 +15,26 @@ [%- IF !user_addr or user_addr.valid == 'f'; NEXT; END; %] - [% user.card.barcode %] - [% user.first_given_name %] - [% user.family_name %] + [% escape_xml(user.card.barcode) %] + [% escape_xml(user.first_given_name) %] + [% escape_xml(user.family_name) %] [% escape_xml(user_addr.street1) %] [% escape_xml(user_addr.street2) %] [% escape_xml(user_addr.city) %] - [% user_addr.state %] - [% user_addr.post_code %] + [% escape_xml(user_addr.state) %] + [% escape_xml(user_addr.post_code) %] [% escape_xml(user.email) %] [% user.id %] [% escape_xml(lib.name) %] [% escape_xml(lib.shortname) %] - [% lib.phone %] + [% escape_xml(lib.phone) %] [% escape_xml(lib_addr.street1) %] [% escape_xml(lib_addr.street2) %] [% escape_xml(lib_addr.city) %] - [% lib_addr.state %] - [% lib_addr.post_code %] + [% escape_xml(lib_addr.state) %] + [% escape_xml(lib_addr.post_code) %] [% escape_xml(lib.email) %] [% lib.id %]