Unverified Commit bd057ed6 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #387 from olivov/fix_search_field_whitespace by olivov

Fix do_search_list sub to trim leading/trailig whitespace
parents 88bb106d b77f3441
......@@ -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