--- loncom/interface/lonmsgdisplay.pm 2023/09/15 12:02:57 1.181.2.9.2.2 +++ loncom/interface/lonmsgdisplay.pm 2023/10/07 01:47:21 1.181.2.9.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging display # -# $Id: lonmsgdisplay.pm,v 1.181.2.9.2.2 2023/09/15 12:02:57 raeburn Exp $ +# $Id: lonmsgdisplay.pm,v 1.181.2.9.2.3 2023/10/07 01:47:21 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2504,12 +2504,16 @@ sub displaymessage { $showsymb,$env{'user.domain'},$env{'user.name'}); if ($symb) { if ($encrypturl =~ /^yes$/i && !$env{'request.role.adv'}) { - $showsymb = &Apache::lonenc::check_encrypt($symb); + unless ($showsymb =~ m{^/enc/}) { + $showsymb = &Apache::lonenc::encrypted($showsymb); + } } $symblink = '?symb='.$showsymb; } if ($encrypturl =~ /^yes$/i && !$env{'request.role.adv'}) { - $showurl = $baseurl; + unless ($showurl =~ m{^/enc/}) { + $showurl = &Apache::lonenc::encrypted($showurl); + } } $r->print(&Apache::lonhtmlcommon::row_title(&mt('Refers to')) .''.$restitle.''