From f99d0dcead379dbb6deb934cf9eaed9368b207a4 Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Wed, 25 Feb 2026 11:56:24 +0200 Subject: [PATCH] Bug 41926: Prevent resubmits from masthead search form To test: 0. Before applying this patch, 1. Open a console and run the following command tail -f /var/log/apache2/other_vhosts_access.log -n 0 | grep 'GET /cgi-bin/koha/opac-search.pl' 2. Navigate to your OPAC main page 3. Observe "Search the catalog" text box and the green search icon to the right 4. Click the search icon as many times and as fast as you can 5. Observe the console window from step 1 having multiple requests 6. Apply patch, 7. Press Ctrl+C in your console and type "clear" (without quotes)" 8. Repeat steps 1-4 9. Observe the console window from step 1 only having one request --- koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 2b6d4478d6d..51f2c151965 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -232,7 +232,7 @@ [% IF ( OpacCustomSearch ) %] [% PROCESS koha_news_block news => OpacCustomSearch %] [% ELSE %] -
+
-- 2.34.1