From: Andrew Dunstan Date: Sun, 25 Mar 2012 16:41:24 +0000 (-0700) Subject: Modify filter to allow legitimate stage names. X-Git-Url: https://git.exim.org/buildfarm-server.git/commitdiff_plain/eb981ae50db15d003f50cc2fc3f349fc873c6d1e Modify filter to allow legitimate stage names. --- diff --git a/cgi-bin/show_failures.pl b/cgi-bin/show_failures.pl index 3169b84..48f0e97 100755 --- a/cgi-bin/show_failures.pl +++ b/cgi-bin/show_failures.pl @@ -25,7 +25,7 @@ my $max_days = $query->param('max_days') + 0 || 10; my @branches = grep {$_ ne "" } $query->param('branch'); map { s/[^a-zA-Z0-9_ -]//g; } @branches; my @stages = grep {$_ ne "" } $query->param('stage'); -map { s/[^a-zA-Z0-9_ -]//g; } @stages; +map { s/[^a-zA-Z0-9_ :-]//g; } @stages; my $dsn="dbi:Pg:dbname=$dbname"; $dsn .= ";host=$dbhost" if $dbhost;