--- loncom/auth/lonacc.pm 2021/11/03 01:04:02 1.200 +++ loncom/auth/lonacc.pm 2021/12/07 23:19:00 1.202 @@ -1,7 +1,7 @@ # The LearningOnline Network # Cookie Based Access Handler # -# $Id: lonacc.pm,v 1.200 2021/11/03 01:04:02 raeburn Exp $ +# $Id: lonacc.pm,v 1.202 2021/12/07 23:19:00 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -160,7 +160,8 @@ sub get_posted_cgi { if (length($value) == 1) { $value=~s/[\r\n]$//; } - } elsif ($fname =~ /\.(xls|doc|ppt)(x|m)$/i) { + } + if ($fname =~ /\.(xls|doc|ppt)(x|m)$/i) { $value=~s/[\r\n]$//; } if (ref($fields) eq 'ARRAY') { @@ -820,7 +821,8 @@ sub handler { } } } - $access=&Apache::lonnet::allowed('bre',$requrl,'','','','','',$nodeeplinkcheck); + my $clientip = &Apache::lonnet::get_requestor_ip($r); + $access=&Apache::lonnet::allowed('bre',$requrl,'','',$clientip,'','',$nodeeplinkcheck); } } if ($check_block) {