--- loncom/lontrans.pm 2004/07/02 07:58:01 1.9 +++ loncom/lontrans.pm 2006/01/16 19:27:09 1.10 @@ -1,7 +1,7 @@ # The LearningOnline Network # URL translation for User Files # -# $Id: lontrans.pm,v 1.9 2004/07/02 07:58:01 albertel Exp $ +# $Id: lontrans.pm,v 1.10 2006/01/16 19:27:09 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -40,7 +40,7 @@ sub handler { my $fn = $r->uri(); $fn=~s/^\/raw//; my (undef,undef,$udom,$uname,@ufile)=split(/\//,$fn); - $ufile[-1]=~s/^[\~\.]+//; + if (@ufile) { $ufile[-1]=~s/^[\~\.]+//; } my $chome=&Apache::lonnet::homeserver($uname,$udom); my $allowed=0; my @ids=&Apache::lonnet::current_machine_ids();