Commit b77f3441 authored by Victor Olivo's avatar Victor Olivo
Browse files

update to do_search_list sub in wwsympa.fcgi to trim leading/trailing whitespace from input value

parent 75ee54d5
......@@ -10611,6 +10611,11 @@ sub do_search_list_request {
sub do_search_list {
wwslog('info', '(%s)', $in{'filter_list'});
## trim leading/trailing whitespace
if (defined $in{'filter_list'}) {
$in{'filter_list'} =~ s/^\s+|\s+$//g;
unless (defined $in{'filter_list'} and length $in{'filter_list'}) {
wwslog('info', 'No filter');
return 'search_list_request';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment