--- loncom/lonenc.pm 2004/11/09 21:16:31 1.3 +++ loncom/lonenc.pm 2004/11/10 22:20:50 1.4 @@ -1,7 +1,7 @@ # The LearningOnline Network # URL translation for encrypted filenames # -# $Id: lonenc.pm,v 1.3 2004/11/09 21:16:31 albertel Exp $ +# $Id: lonenc.pm,v 1.4 2004/11/10 22:20:50 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -44,11 +44,14 @@ sub handler { my $handle=$lonid->value; $handle=~s/\W//g; my $lonidsdir=$r->dir_config('lonIDsDir'); + $ENV{'request.enc'}=1; if ((-e "$lonidsdir/$handle.id") && ($handle ne '')) { # Initialize Environment &Apache::lonnet::transfer_profile_to_env($lonidsdir,$handle); # Decrypt URL and redirect - $r->internal_redirect(&unencrypted($r->uri)); + &Apache::lonnet::logthis("args ".$r->args); + &Apache::lonnet::logthis("uri ".$r->uri); + $r->internal_redirect(&unencrypted($r->uri).'?'.$r->args); return OK; } }