Bug 29956: Prevent login form to be serialized into cookie
To recrate: Logout Go to /cgi-bin/koha/opac-search.pl Click "Log in to your account" Fill in the login form Submit Check the 'form_serialized' cookie's value => Without this patch it contain login/password => With this patch applied the cookie is not created Confirm that the "Return to the last advanced search" feature still works as expected. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
8b91d08fae
commit
2a4fa92458
|
|
@ -9,7 +9,7 @@
|
|||
</head>
|
||||
[% INCLUDE 'bodytag.inc' bodyid='advsearch' bodyclass='scrollto' %]
|
||||
[% INCLUDE 'masthead.inc' %]
|
||||
<form action="/cgi-bin/koha/opac-search.pl" method="get">
|
||||
<form id="advsearch_form" action="/cgi-bin/koha/opac-search.pl" method="get">
|
||||
<input type="hidden" name="advsearch" value="1"/>
|
||||
<div class="main">
|
||||
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
|
||||
|
|
@ -500,7 +500,7 @@ $(document).ready(function() {
|
|||
jQuery.removeCookie("form_serialized_limits", { path: '/'});
|
||||
jQuery.removeCookie("search_path_code", { path: '/'});
|
||||
[% END %]
|
||||
$('#advsearch form').submit(function() {
|
||||
$('#advsearch_form').submit(function() {
|
||||
$('[name^="limit"]').each(function(){
|
||||
if( $(this).val() == '' ){
|
||||
$(this).prop("disabled","disabled");
|
||||
|
|
|
|||
Loading…
Reference in New Issue