This makes searchtype containing underscore '_' to pass parameter validation in evaluate_and_validate_params(). Signed-off-by: Jakub Narebski <jnareb@xxxxxxxxx> --- This is not necessary in this series, and could be left for later when we need it. gitweb/gitweb.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index f858d1b..7ec1621 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1057,7 +1057,7 @@ sub evaluate_and_validate_params { our $searchtype = $input_params{'searchtype'}; if (defined $searchtype) { - if ($searchtype =~ m/[^a-z]/) { + if ($searchtype =~ m/[^a-z_]/) { die_error(400, "Invalid searchtype parameter"); } } -- 1.7.5 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html