From 623aee25de2e1ee758aae7124d451b3be469a233 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 4 Jun 2006 02:48:57 +0000 Subject: Bug 340253: .cgi scripts should call Throw*Error() instead of die() - Patch by Frédéric Buclin r=vladd a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reports.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'reports.cgi') diff --git a/reports.cgi b/reports.cgi index 947993a56..1181e3a81 100755 --- a/reports.cgi +++ b/reports.cgi @@ -232,7 +232,8 @@ sub chart_image_name { # and number if ($datasets !~ m/^[A-Za-z0-9:]+$/) { - die "Invalid datasets $datasets"; + $vars->{'datasets'} = $datasets; + ThrowUserError('invalid_datasets', $vars); } # Since we pass the tests, consider it OK -- cgit v1.2.3-24-g4f1b