--- loncom/interface/lonmsgdisplay.pm 2023/10/07 01:47:21 1.181.2.9.2.3 +++ loncom/interface/lonmsgdisplay.pm 2023/09/13 13:57:55 1.181.2.10 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging display # -# $Id: lonmsgdisplay.pm,v 1.181.2.9.2.3 2023/10/07 01:47:21 raeburn Exp $ +# $Id: lonmsgdisplay.pm,v 1.181.2.10 2023/09/13 13:57:55 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2504,16 +2504,12 @@ sub displaymessage { $showsymb,$env{'user.domain'},$env{'user.name'}); if ($symb) { if ($encrypturl =~ /^yes$/i && !$env{'request.role.adv'}) { - unless ($showsymb =~ m{^/enc/}) { - $showsymb = &Apache::lonenc::encrypted($showsymb); - } + $showsymb = &Apache::lonenc::check_encrypt($symb); } $symblink = '?symb='.$showsymb; } if ($encrypturl =~ /^yes$/i && !$env{'request.role.adv'}) { - unless ($showurl =~ m{^/enc/}) { - $showurl = &Apache::lonenc::encrypted($showurl); - } + $showurl = $baseurl; } $r->print(&Apache::lonhtmlcommon::row_title(&mt('Refers to')) .''.$restitle.'' @@ -3171,24 +3167,9 @@ sub handler { 'sendreply','compose','sendmail','critical','recname','recdom', 'recordftf','sortedby','folder','startdis','interdis', 'showcommentbaseurl','dismode','group','subject','text','ref', - 'msgstatus','btoken']); + 'msgstatus']); $sqs='&sortedby='.$env{'form.sortedby'}; -# ----------- Check if access was from balancer to server with existing session - - if ($env{'form.btoken'}) { - my %info = &Apache::lonnet::tmpget($env{'form.btoken'}); - &Apache::lonnet::tmpdel($env{'form.btoken'}); - delete($env{'form.btoken'}); - unless ($env{'form.display'}) { - if (($info{'display'}) && ($info{'mailrecip'})) { - if (&unescape($info{'mailrecip'}) eq $env{'user.name'}.':'.$env{'user.domain'}) { - $env{'form.display'} = &unescape($info{'display'}); - } - } - } - } - # ------------------------------------------------------ They checked for email &Apache::lonnet::put('email_status',{'recnewemail'=>0});