--- loncom/auth/switchserver.pm 2022/09/19 19:18:42 1.35.2.6.2.4 +++ loncom/auth/switchserver.pm 2023/01/23 01:59:24 1.35.2.6.2.5 @@ -1,7 +1,7 @@ # The LearningOnline Network # Switch Servers Handler # -# $Id: switchserver.pm,v 1.35.2.6.2.4 2022/09/19 19:18:42 raeburn Exp $ +# $Id: switchserver.pm,v 1.35.2.6.2.5 2023/01/23 01:59:24 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -304,6 +304,12 @@ sub handler { } if ($env{'form.origurl'}) { $info{'origurl'} = $env{'form.origurl'}; + if ($env{'form.origurl'} eq '/adm/email') { + if ($env{'request.display'} && ($env{'request.mailrecip'} eq "$env{'user.name'}:$env{'user.domain'}")) { + $info{'display'} = &escape($env{'request.display'}); + $info{'mailrecip'} = &escape($env{'request.mailrecip'}); + } + } } if ($env{'form.symb'}) { $info{'symb'} = $env{'form.symb'};