summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorendico%mozilla.org <>2000-06-08 02:49:02 +0200
committerendico%mozilla.org <>2000-06-08 02:49:02 +0200
commitdba8ee6df76517f18ad304b184503673838cf8cb (patch)
tree523f639a314b1a9459d86a97861b8ba84c890d5d
parent8239b8ebaf464d64624cccb92ee6d08b9e604eed (diff)
downloadbugzilla-dba8ee6df76517f18ad304b184503673838cf8cb.tar.gz
bugzilla-dba8ee6df76517f18ad304b184503673838cf8cb.tar.xz
change the sanity check against $::FORM{'who'} since that variable is no longer used.
-rwxr-xr-xdoeditvotes.cgi4
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";