diff options
author | lpsolit%gmail.com <> | 2006-06-04 02:48:57 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-04 02:48:57 +0000 |
commit | 623aee25de2e1ee758aae7124d451b3be469a233 (patch) | |
tree | b45c9cdbbc0ea3db6725e475a902b6362d3205f1 /reports.cgi | |
parent | Bug 340104: Move Bugzilla::Auth::get_netaddr() in Util.pm - Patch by Frédér... (diff) | |
download | bugzilla-623aee25de2e1ee758aae7124d451b3be469a233.tar.gz bugzilla-623aee25de2e1ee758aae7124d451b3be469a233.tar.bz2 bugzilla-623aee25de2e1ee758aae7124d451b3be469a233.zip |
Bug 340253: .cgi scripts should call Throw*Error() instead of die() - Patch by Frédéric Buclin <LpSolit@gmail.com> r=vladd a=justdave
Diffstat (limited to 'reports.cgi')
-rwxr-xr-x | reports.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
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 |