Skip to content

Commit

Permalink
Item2014: fix 'undefined subroutine' error
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@4796 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
AndrewJones authored and AndrewJones committed Sep 8, 2009
1 parent e95e779 commit c68c3d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/Foswiki/LoginManager/Session.pm
Expand Up @@ -29,7 +29,7 @@ sub load {

# SMELL: This breaks mod_perl Foswikibug:Item691
# local %ENV = %ENV;
$ENV{REMOTE_ADDR} = @_ == 1 ? $_[0]->remoteAddress : $_[1]->remoteAddress;
$ENV{REMOTE_ADDR} = @_ == 1 ? $_[0]->remote_addr : $_[1]->remote_addr;
$this->SUPER::load(@_);
}

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

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

1;
Expand Down

0 comments on commit c68c3d4

Please sign in to comment.