Bugzilla – Attachment 169540 Details for
Bug 37466
Reflected Cross Site Scripting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37466: Add correct filter for sort_by in results.tt
Bug-37466-Add-correct-filter-for-sortby-in-results.patch (text/plain), 2.83 KB, created by
David Cook
on 2024-07-25 06:46:44 UTC
(
hide
)
Description:
Bug 37466: Add correct filter for sort_by in results.tt
Filename:
MIME Type:
Creator:
David Cook
Created:
2024-07-25 06:46:44 UTC
Size:
2.83 KB
patch
obsolete
>From 19c06787194f7112ab0d6a85fc3d548bf41bf018 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Thu, 25 Jul 2024 06:44:37 +0000 >Subject: [PATCH] Bug 37466: Add correct filter for sort_by in results.tt > >This patch replaces the $raw filter with the correct uri filter >for the sort_by in results.tt > >Test plan: >1. Apply patch >2. Go to /cgi-bin/koha/catalogue/search.pl?count=20&sort_by=popularity_dsc&idx=kw&q=1 >3. Click on "Edit this search" >4. Note that the "Popularity (most to least)" Sort by option is selected >5. Go to /cgi-bin/koha/catalogue/search.pl?count=20&sort_by=popularity_dsc&idx=kw&q=24y24ty2498294t9824yt9y23 >6. Click on "Edit this search" >7. Note that the "Popularity (most to least)" Sort by option is selected >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index 91db336895..758cd4cb83 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -86,7 +86,7 @@ > </h3> > > [% UNLESS scan %] >- <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | $raw %]">Edit this search</a> >+ <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | uri %]">Edit this search</a> > [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %] > | <a href="#" id="save_search_filter">Save search as filter</a> > [% END %] >@@ -371,7 +371,7 @@ > [% IF CAN_user_acquisition_order_manage && searchtoorder_basketno && searchtoorder_vendorid %][%# Coming from the basket or vendor view %] > <p><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% searchtoorder_basketno | uri %]">View basket<a></p> > [% END %] >- <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | $raw %]">Edit this search</a> >+ <a href="/cgi-bin/koha/catalogue/search.pl?advsearch=1&edit_search=1&[% query_cgi | $raw %]&[% limit_cgi | $raw %]&sort_by=[% sort_by | uri %]">Edit this search</a> > [% IF ( Koha.Preference('SavedSearchFilters') && CAN_user_parameters_manage_search_filters ) %] > | <a href="#" id="save_search_filter">Save search as filter</a> > [% END %] >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37466
:
169539
|
169540
|
169799
|
169802