summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Auth
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-03-23 07:41:07 +0100
committerlpsolit%gmail.com <>2005-03-23 07:41:07 +0100
commit7bb599bd040d53ee5cbec58ed74770da638c5acd (patch)
tree0f0746b3529eb99e89d31828658da2e52382f231 /Bugzilla/Auth
parent4271efa047ab1474a1d056ea1a1c7cb7fdf5378b (diff)
downloadbugzilla-7bb599bd040d53ee5cbec58ed74770da638c5acd.tar.gz
bugzilla-7bb599bd040d53ee5cbec58ed74770da638c5acd.tar.xz
Bug 258515: Errors when accessing Bugzilla over IPv6 - Patch by Marc Schumann <wurblzap@gmail.com> r=joel, a=justdave
Diffstat (limited to 'Bugzilla/Auth')
-rw-r--r--Bugzilla/Auth/Login/WWW/CGI/Cookie.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/Bugzilla/Auth/Login/WWW/CGI/Cookie.pm b/Bugzilla/Auth/Login/WWW/CGI/Cookie.pm
index a8ba4f777..c2244d15d 100644
--- a/Bugzilla/Auth/Login/WWW/CGI/Cookie.pm
+++ b/Bugzilla/Auth/Login/WWW/CGI/Cookie.pm
@@ -57,18 +57,16 @@ sub authenticate {
" logincookies.userid=profiles.userid AND " .
" logincookies.userid=? AND " .
" (logincookies.ipaddr=?";
+ my @params = ($login_cookie, $login, $ipaddr);
if (defined $netaddr) {
trick_taint($netaddr);
$query .= " OR logincookies.ipaddr=?";
+ push(@params, $netaddr);
}
$query .= ")";
my $dbh = Bugzilla->dbh;
- my ($userid, $disabledtext) = $dbh->selectrow_array($query, undef,
- $login_cookie,
- $login,
- $ipaddr,
- $netaddr);
+ my ($userid, $disabledtext) = $dbh->selectrow_array($query, undef, @params);
return (AUTH_DISABLED, $userid, $disabledtext)
if ($disabledtext);