summaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-05-21 20:07:33 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-05-21 20:07:33 +0200
commitfc9858fed697d00fb921dd86448dad0ef70552a6 (patch)
tree0ea0fcc2484767562729c45278dc96241f59d67c /editflagtypes.cgi
parent5ec002f8c6aaf5dba9039ac8ae5898b07af4afee (diff)
downloadbugzilla-fc9858fed697d00fb921dd86448dad0ef70552a6.tar.gz
bugzilla-fc9858fed697d00fb921dd86448dad0ef70552a6.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 d78942c07..d75bebba2 100755
--- a/editflagtypes.cgi
+++ b/editflagtypes.cgi
@@ -156,6 +156,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;