]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 452844: Taint error in _check_dup_id() - Patch by John L. Clark <jlc6@po.cwru...
authorlpsolit%gmail.com <>
Mon, 1 Sep 2008 03:14:00 +0000 (03:14 +0000)
committerlpsolit%gmail.com <>
Mon, 1 Sep 2008 03:14:00 +0000 (03:14 +0000)
Bugzilla/Bug.pm

index 610a7c0f6860827af3caad50f036a1d08ccb36c8..d625953a9ad3342ae895f441fdd627fed29b98f1 100644 (file)
@@ -1205,6 +1205,7 @@ sub _check_dup_id {
     $dupe_of || ThrowCodeError('undefined_field', { field => 'dup_id' });
     # Make sure we can change the original bug (issue A on bug 96085)
     my $dupe_of_bug = $self->check($dupe_of, 'dup_id');
+    $dupe_of = $dupe_of_bug->id;
     
     # Make sure a loop isn't created when marking this bug
     # as duplicate.