summaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-05-21 20:06:17 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-05-21 20:06:17 +0200
commit89e86c9318b61fe67077d33e37cc625c06487581 (patch)
tree2de87f67791faa81cef15962774d4417f1edd76b /editflagtypes.cgi
parentcb114a086e9d68706f326adcc30b149fb06170d1 (diff)
downloadbugzilla-89e86c9318b61fe67077d33e37cc625c06487581.tar.gz
bugzilla-89e86c9318b61fe67077d33e37cc625c06487581.tar.xz
Bug 754090: Bugzilla::FlagType::match() crashes when the group parameter is not a number
a=LpSolit
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-xeditflagtypes.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi
index 4603aee38..e9c430d7d 100755
--- a/editflagtypes.cgi
+++ b/editflagtypes.cgi
@@ -141,6 +141,9 @@ if ($action eq 'list') {
my $component_id = $component ? $component->id : 0;
my $show_flag_counts = $cgi->param('show_flag_counts') ? 1 : 0;
my $group_id = $cgi->param('group');
+ if ($group_id) {
+ detaint_natural($group_id) || ThrowUserError('invalid_group_ID');
+ }
my $bug_flagtypes;
my $attach_flagtypes;