--- loncom/homework/lonhomework.pm 2003/10/13 21:09:47 1.152 +++ loncom/homework/lonhomework.pm 2003/10/15 17:41:10 1.155 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.152 2003/10/13 21:09:47 albertel Exp $ +# $Id: lonhomework.pm,v 1.155 2003/10/15 17:41:10 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -149,7 +149,7 @@ $Apache::lonxml::browse=''; sub check_ip_acc { my ($acc)=@_; - if (!defined($acc)) { return 1; } + if (!defined($acc) || $acc =~ /^\s*$/) { return 1; } my $allowed=0; my $ip=$ENV{'REMOTE_ADDR'}; my $name; @@ -216,9 +216,8 @@ sub check_access { my $allowed=&check_ip_acc(&Apache::lonnet::EXT("resource.$id.acc")); if (!$allowed) { - &Apache::lonnet::logthis("Early exit"); $status='INVALID_ACCESS'; - $date=&mt("may be open from a different computer."); + $date=&mt("can not be accessed from your location."); return($status,$date); } 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.