--- loncom/auth/lonracc.pm 2007/02/01 06:20:34 1.18 +++ loncom/auth/lonracc.pm 2007/02/01 06:31:33 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network # Access Handler for File Transfers # -# $Id: lonracc.pm,v 1.18 2007/02/01 06:20:34 albertel Exp $ +# $Id: lonracc.pm,v 1.19 2007/02/01 06:31:33 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -58,6 +58,12 @@ sub subscribed { sub handler { my $r = shift; + + my $filename=$r->filename; + if (!-e $filename) { + return NOT_FOUND; + } + my $reqhost = $r->get_remote_host(REMOTE_NOLOOKUP); my %iphost=&Apache::lonnet::get_iphost(); my $hostids=$iphost{$reqhost}; @@ -73,7 +79,6 @@ sub handler { my @ids; foreach my $id (@{$hostids}) { - my $filename=$r->filename; my $uri =$r->uri; if (($filename=~/\.meta$/) || ($uri=~m|^/raw/uploaded|) ||