Commit 6768b59c authored by cyeh%bluemartini.com's avatar cyeh%bluemartini.com

Validate value of $::FORM{who}. Thanks to Ed Korthof (edk@collab.net) for patch.

parent f06cbb71
......@@ -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"};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment