From a7870933bc58f753ed403b49b30e53d6d9708c81 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 1 Sep 2008 03:14:00 +0000 Subject: [PATCH] Bug 452844: Taint error in _check_dup_id() - Patch by John L. Clark r/a=mkanat --- Bugzilla/Bug.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 610a7c0f68..d625953a9a 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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. -- 2.47.3