]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 177828: Fixes taint warning from post_bug with perl 5.8
authorjustdave%syndicomm.com <>
Mon, 1 Sep 2003 08:28:14 +0000 (08:28 +0000)
committerjustdave%syndicomm.com <>
Mon, 1 Sep 2003 08:28:14 +0000 (08:28 +0000)
r= bbaetz, a= justdave

post_bug.cgi

index 2edb1aca42aab86a77792850185a57a41b3a653b..6f37b18bff8d977df1e53ef7aa95e51c653d1ca4 100755 (executable)
@@ -212,6 +212,10 @@ if (defined $::FORM{'cc'}) {
             my $ccid = DBNameToIdAndCheck($person);
             if ($ccid && !$ccids{$ccid}) {
                 $ccids{$ccid} = 1;
+                # if we got here, the DB has already verified that the email
+                # is legit.  Unless the admin has screwed with the emailregexp
+                # it'll be safe.
+                trick_taint($person);
                 push(@cc, $person);
             }
         }