--- loncom/publisher/lonpubdir.pm 2001/04/01 02:58:51 1.1 +++ loncom/publisher/lonpubdir.pm 2001/05/03 11:04:07 1.5 @@ -10,7 +10,7 @@ # 03/23 Guy Albertelli # 03/24,03/29 Gerd Kortemeyer) # -# 03/31 Gerd Kortemeyer +# 03/31,04/03 Gerd Kortemeyer package Apache::lonpubdir; @@ -34,10 +34,11 @@ sub handler { $fn=$r->filename(); } + $fn=~s/\/$//; unless ($fn) { $r->log_reason($ENV{'user.name'}.' at '.$ENV{'user.domain'}. - ' trying to publish empty directory', $r->filename); + ' trying to list empty directory', $r->filename); return HTTP_NOT_FOUND; } @@ -57,24 +58,68 @@ sub handler { my $thisdisfn=$fn; $thisdisfn=~s/^\/home\/$uname\/public_html//; - $r->print('
Filename | Modified | Status |
---|