Diff for /loncom/interface/loncommon.pm between versions 1.1075.2.104 and 1.1075.2.105

version 1.1075.2.104, 2016/08/06 23:21:52 version 1.1075.2.105, 2016/08/07 20:56:23
Line 4683  END_BLOCK Line 4683  END_BLOCK
 ###############################################  ###############################################
   
 sub check_ip_acc {  sub check_ip_acc {
     my ($acc)=@_;      my ($acc,$clientip)=@_;
     &Apache::lonxml::debug("acc is $acc");      &Apache::lonxml::debug("acc is $acc");
     if (!defined($acc) || $acc =~ /^\s*$/ || $acc =~/^\s*no\s*$/i) {      if (!defined($acc) || $acc =~ /^\s*$/ || $acc =~/^\s*no\s*$/i) {
         return 1;          return 1;
     }      }
     my $allowed=0;      my $allowed=0;
     my $ip=$env{'request.host'} || $ENV{'REMOTE_ADDR'};      my $ip=$env{'request.host'} || $ENV{'REMOTE_ADDR'} || $clientip;
   
     my $name;      my $name;
     foreach my $pattern (split(',',$acc)) {      foreach my $pattern (split(',',$acc)) {

Removed from v.1.1075.2.104  
changed lines
  Added in v.1.1075.2.105


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>