--- loncom/lontrans.pm 2006/12/06 22:22:36 1.13 +++ loncom/lontrans.pm 2020/03/05 22:02:32 1.14.10.1 @@ -1,7 +1,7 @@ # The LearningOnline Network # URL translation for User Files # -# $Id: lontrans.pm,v 1.13 2006/12/06 22:22:36 albertel Exp $ +# $Id: lontrans.pm,v 1.14.10.1 2020/03/05 22:02:32 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -52,14 +52,13 @@ sub handler { $r->filename(&propath($udom,$uname). '/userfiles/'.(join('/',@ufile))); } - } elsif ($r->uri=~m|^/~|) { - #internal authentication, needs fixup. - my $fn = $r->uri(); # non users do not get the full path request - # through SCRIPT_FILENAME - $fn=~s|^/~($LONCAPA::username_re)|/home/$1/public_html|; - $r->filename($fn); - } else { return DECLINED; } - return OK; + return OK; + } elsif ($r->uri =~ m{^\Q/adm/wrapper/ext/https:/\E[^/]}) { + my $uri = $r->uri; + $uri =~ s{^(\Q/adm/wrapper/ext/https:/\E)}{$1/}; + $r->uri($uri); + } + return DECLINED; } 1;