--- loncom/auth/lonroles.pm 2003/08/12 19:46:04 1.66 +++ loncom/auth/lonroles.pm 2003/09/11 20:03:28 1.67 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.66 2003/08/12 19:46:04 www Exp $ +# $Id: lonroles.pm,v 1.67 2003/09/11 20:03:28 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -171,7 +171,11 @@ ENDENTERKEY &Apache::lonuserstate::readmap($cdom.'/'.$cnum); if (($ENV{'form.orgurl'}) && ($ENV{'form.orgurl'}!~/^\/adm\/flip/)) { - $r->internal_redirect($ENV{'form.orgurl'}); + my $dest=$ENV{'form.orgurl'}; + if ( Apache::exists_config_define("MODPERL2") ) { + &Apache::lonnet::cleanenv(); + } + $r->internal_redirect($dest); return OK; } else { unless ($ENV{'request.course.id'}) { @@ -179,7 +183,7 @@ ENDENTERKEY "request.course.id" => $cdom.'_'.$cnum); $furl='/adm/roles?tryagain=1'; $msg= - '

Could not initialize course at this time.

Please try again.

'; + '

Could not initialize course at this time.

Please try again.

'.$ferr; } # Check to see if the user is a CC entering a course