From dc9f0a01f40077eb079609e8d64a60619e1a2da4 Mon Sep 17 00:00:00 2001 From: "endico%mozilla.org" Date: Wed, 7 Jun 2000 17:49:02 +0000 Subject: [PATCH] change the sanity check against $::FORM{'who'} since that variable is no longer used. git-svn-id: svn://10.0.0.236/trunk@71720 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/doeditvotes.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/doeditvotes.cgi b/mozilla/webtools/bugzilla/doeditvotes.cgi index 3902f91188e..7b830595a2d 100755 --- a/mozilla/webtools/bugzilla/doeditvotes.cgi +++ b/mozilla/webtools/bugzilla/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 $::COOKIE{'Bugzilla_login'}, then please\n"; print "click here.
\n";