Skip to content

Commit

Permalink
Item2014: reverted. Sorry about this.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x00@4797 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
AndrewJones authored and AndrewJones committed Sep 8, 2009
1 parent d0da42c commit 310f5ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/Foswiki/LoginManager/Session.pm
Expand Up @@ -25,7 +25,7 @@ sub load {
my $this = shift;
# SMELL: This breaks mod_perl Foswikibug:Item691
# local %ENV = %ENV;
$ENV{REMOTE_ADDR} = @_ == 1 ? $_[0]->remote_addr : $_[1]->remote_addr;
$ENV{REMOTE_ADDR} = @_ == 1 ? $_[0]->remoteAddress : $_[1]->remoteAddress;
$this->SUPER::load(@_);
}

Expand All @@ -40,7 +40,7 @@ sub query {

sub _ip_matches {
return ( $_[0]->{_DATA}->{_SESSION_REMOTE_ADDR} eq
$_[0]->query->remote_addr );
$_[0]->query->remoteAddress );
}

1;
Expand Down

0 comments on commit 310f5ad

Please sign in to comment.