--- loncom/lontrans.pm 2021/05/03 15:27:42 1.31 +++ loncom/lontrans.pm 2021/07/17 21:48:27 1.33 @@ -1,7 +1,7 @@ # The LearningOnline Network # URL translation for User Files # -# $Id: lontrans.pm,v 1.31 2021/05/03 15:27:42 raeburn Exp $ +# $Id: lontrans.pm,v 1.33 2021/07/17 21:48:27 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -89,6 +89,10 @@ sub handler { } if ($redirect) { my $uri = $r->uri; + if (($uri eq '/adm/sso') || ($uri eq '/adm/switchserver') || + ($uri =~ m{^/Shibboleth.sso/})) { + return DECLINED; + } unless ($uri eq '/adm/migrateuser') { my %user; my $handle = &Apache::lonnet::check_for_valid_session($r,undef,\%user); @@ -107,6 +111,9 @@ sub handler { $protocol = 'https'; } my $querystring = $r->args; + if ($uri =~ m{^(/adm/css/)(.+)(.css)$}) { + $uri = $1.&escape($2).$3; + } my $location = $protocol.'://'.$redirect.$uri; if ($querystring) { $location .= "?$querystring";