From 913f80c93825388ef1f3827cdf627558e85a4469 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 9 Oct 2012 14:11:10 +1300 Subject: [PATCH] Bug 3652: XSS vulnerability in page numbering Signed-off-by: Katrin Fischer Confirmed the problem with test plan on the bug and checked that paging works correctly after the patch. Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/includes/page-numbers.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/page-numbers.inc b/koha-tmpl/opac-tmpl/prog/en/includes/page-numbers.inc index 738c0c979e..ff9b11c55c 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/page-numbers.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/page-numbers.inc @@ -1,7 +1,6 @@ [% IF ( PAGE_NUMBERS ) %]
- [% IF ( previous_page_offset ) %]<< Previous[% END %] - [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %][% IF ( PAGE_NUMBER.highlight ) %][% PAGE_NUMBER.pg %][% ELSE %] [% PAGE_NUMBER.pg %][% END %] + [% IF ( previous_page_offset ) %]<< Previous[% END %] + [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %][% IF ( PAGE_NUMBER.highlight ) %][% PAGE_NUMBER.pg %][% ELSE %] [% PAGE_NUMBER.pg %][% END %] [% END %] - [% IF ( next_page_offset ) %]Next >>[% END %] -
[% END %] + [% IF ( next_page_offset ) %]Next >>[% END %] [% END %] -- 2.39.5