diff options
-rwxr-xr-x | doeditvotes.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doeditvotes.cgi b/doeditvotes.cgi index 3902f9118..7b830595a 100755 --- a/doeditvotes.cgi +++ b/doeditvotes.cgi @@ -34,8 +34,8 @@ GetVersionTable(); my $who = DBNameToIdAndCheck($::COOKIE{'Bugzilla_login'}); -if ($who ne $::FORM{'who'}) { - PutHeader("Wrong login."); +if ( (! defined $who) || (!$who) ) { + PutHeader("Bad login."); print "The login info got confused. If you want to adjust the votes\n"; print "for <tt>$::COOKIE{'Bugzilla_login'}</tt>, then please\n"; print "<a href=showvotes.cgi?user=$who>click here</a>.<hr>\n"; |