Bug 20819: (RM follow-up) Add missing filters
authorNick Clemens <nick@bywatersolutions.com>
Thu, 20 Sep 2018 13:34:49 +0000 (13:34 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 20 Sep 2018 13:45:28 +0000 (13:45 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-patron-consent.tt

index 25f9c10..abf4fba 100644 (file)
                         <legend>GDPR consent</legend>
                         <ol>
                         <li>
-                            <label></label><span><input type="checkbox" name="borrower_gdpr_proc_consent" value="agreed"> I agree with your processing of my personal data as outlined in the <a target="_blank" href="[% PrivacyPolicyURL %]">privacy policy</a>. <span class="required">Required</span></span>
+                            <label></label><span><input type="checkbox" name="borrower_gdpr_proc_consent" value="agreed"> I agree with your processing of my personal data as outlined in the <a target="_blank" href="[% PrivacyPolicyURL | url %]">privacy policy</a>. <span class="required">Required</span></span>
                         </li>
                         </ol>
                     </fieldset>
index 50b09e6..265c344 100644 (file)
@@ -1,7 +1,7 @@
 [% USE Koha %]
 [% SET consentview = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
-<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your consents</title>
+<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your consents</title>
 [% INCLUDE 'doc-head-close.inc' %]
 [% BLOCK cssinclude %][% END %]
 </head>
@@ -11,7 +11,7 @@
 <div class="main">
     <ul class="breadcrumb">
         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
-        <li><a href="/cgi-bin/koha/opac-user.pl">[% patron.firstname %] [% patron.surname %]</a> <span class="divider">&rsaquo;</span></li>
+        <li><a href="/cgi-bin/koha/opac-user.pl">[% patron.firstname | html %] [% patron.surname | html %]</a> <span class="divider">&rsaquo;</span></li>
         <li><a href="#">Your consents</a></li>
     </ul>
 
                         [% IF Koha.Preference('GDPR_Policy') %]
                             <h5>GDPR consents</h5>
                             <input type="hidden" name="op" value="gdpr_proc_save"/>
-                            <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]"/>
+                            <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]"/>
                             <fieldset>
                                 <ul><li>
-                                    <p>I have read the <a target="_blank" href="[% Koha.Preference('PrivacyPolicyURL') %]">privacy policy</a> and agree with your processing of my personal data as outlined therein.</p>
+                                    <p>I have read the <a target="_blank" href="[% Koha.Preference('PrivacyPolicyURL') | url %]">privacy policy</a> and agree with your processing of my personal data as outlined therein.</p>
                                     <p><input type="radio" name="gdpr_processing" value="agreed"> Yes, I agree.<br>
                                     <input type="radio" name="gdpr_processing" value="disagreed"> No, I do not agree. Please remove my account within a reasonable time.</p>
                                     [% IF gdpr_proc_consent %]
-                                        <p>Your consent was registered on [% gdpr_proc_consent %].</p>
+                                        <p>Your consent was registered on [% gdpr_proc_consent | html %].</p>
                                     [% END %]
                                 </li></ul>
                             </fieldset>