summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2000-05-09 03:12:28 +0200
committercyeh%bluemartini.com <>2000-05-09 03:12:28 +0200
commit6768b59c734cc24810dd86f2806f0e99fe80648f (patch)
treed620fcdf46052f51c8e2f1b15bae7c7c4eef9638 /CGI.pl
parentf06cbb717b9c06411f2b7627cdd249f4d5aba469 (diff)
downloadbugzilla-6768b59c734cc24810dd86f2806f0e99fe80648f.tar.gz
bugzilla-6768b59c734cc24810dd86f2806f0e99fe80648f.tar.xz
Validate value of $::FORM{who}. Thanks to Ed Korthof (edk@collab.net) for patch.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/CGI.pl b/CGI.pl
index a0f667af3..2e782b6da 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -560,6 +560,11 @@ sub quietly_check_login() {
}
}
}
+ # if 'who' is passed in, verify that it's a good value
+ if ($::FORM{'who'}) {
+ my $whoid = DBname_to_id($::FORM{'who'});
+ delete $::FORM{'who'} unless $whoid;
+ }
if (!$loginok) {
delete $::COOKIE{"Bugzilla_login"};
}