From eb981ae50db15d003f50cc2fc3f349fc873c6d1e Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sun, 25 Mar 2012 09:41:24 -0700 Subject: [PATCH] Modify filter to allow legitimate stage names. --- cgi-bin/show_failures.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2