aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-09-01 03:14:00 +0000
committerlpsolit%gmail.com <>2008-09-01 03:14:00 +0000
commita7870933bc58f753ed403b49b30e53d6d9708c81 (patch)
tree0faebf591111ff6880bd32cfd008a79314886fc4 /Bugzilla
parent7828df1ce0c9e89d96210f80c0ae499d68999064 (diff)
downloadbugs-a7870933bc58f753ed403b49b30e53d6d9708c81.tar
bugs-a7870933bc58f753ed403b49b30e53d6d9708c81.tar.gz
bugs-a7870933bc58f753ed403b49b30e53d6d9708c81.tar.bz2
bugs-a7870933bc58f753ed403b49b30e53d6d9708c81.tar.xz
bugs-a7870933bc58f753ed403b49b30e53d6d9708c81.zip
Bug 452844: Taint error in _check_dup_id() - Patch by John L. Clark <jlc6@po.cwru.edu> r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 610a7c0f6..d625953a9 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.