From 1ee01139bf11c52a5a0269296fa07340047e8f7b Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" Date: Sat, 10 Jul 2004 08:03:15 +0000 Subject: [PATCH] Bug 237627: Validate dataset name in reports.cgi patch by teemu r=justdave a=justdave git-svn-id: svn://10.0.0.236/trunk@158986 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/reports.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/reports.cgi b/mozilla/webtools/bugzilla/reports.cgi index 01ce9927724..685b16418d8 100755 --- a/mozilla/webtools/bugzilla/reports.cgi +++ b/mozilla/webtools/bugzilla/reports.cgi @@ -234,7 +234,7 @@ sub chart_image_name { # Instead, just require that each field name consists only of letters # and number - if ($datasets !~ m/[A-Za-z0-9:]/) { + if ($datasets !~ m/^[A-Za-z0-9:]+$/) { die "Invalid datasets $datasets"; }