summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-06-03 16:21:55 +0200
committerlpsolit%gmail.com <>2007-06-03 16:21:55 +0200
commite39ea822a5dec23ea34c7784337247b18946a881 (patch)
tree2d3a33e2b24d2fc1799d4d0e376e12cc7a524b3e
parenta49117c52222b5e82fcaac4cfa2c356915a1b47b (diff)
downloadbugzilla-e39ea822a5dec23ea34c7784337247b18946a881.tar.gz
bugzilla-e39ea822a5dec23ea34c7784337247b18946a881.tar.xz
Bug 382974: $duplicate can be set even when not marking a bug as a dupe (security check bypass) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=justdave a=LpSolit
-rwxr-xr-xprocess_bug.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index bb0d608a5..170fb87a5 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -951,7 +951,7 @@ $vars->{resolution} = $cgi->param('resolution') || '';
Bugzilla::Bug->check_status_change_triggers($knob, \@idlist, $vars);
# Some triggers require extra actions.
-$duplicate = $vars->{dup_id};
+$duplicate = $vars->{dup_id} if ($knob eq 'duplicate');
$requiremilestone = $vars->{requiremilestone};
DuplicateUserConfirm($vars->{bug_id}, $duplicate) if $vars->{DuplicateUserConfirm};
_remove_remaining_time() if $vars->{remove_remaining_time};