]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
change the sanity check against $::FORM{'who'} since that variable is no longer used.
authorendico%mozilla.org <>
Thu, 8 Jun 2000 00:49:02 +0000 (00:49 +0000)
committerendico%mozilla.org <>
Thu, 8 Jun 2000 00:49:02 +0000 (00:49 +0000)
doeditvotes.cgi

index 3902f91188e7dc25a330609a8d3b10f8463aa1b8..7b830595a2dfbb946715ae9fc10ceb8ca37a1126 100755 (executable)
@@ -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";