summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
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"};
}