--- loncom/interface/lonwhatsnew.pm 2017/09/13 22:30:20 1.124 +++ loncom/interface/lonwhatsnew.pm 2017/09/13 23:35:07 1.125 @@ -1,5 +1,5 @@ # -# $Id: lonwhatsnew.pm,v 1.124 2017/09/13 22:30:20 raeburn Exp $ +# $Id: lonwhatsnew.pm,v 1.125 2017/09/13 23:35:07 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1327,7 +1327,7 @@ sub getnormalmail { } my $esc_msgid = &escape($msgid); my ($sendtime,$shortsubj,$fromname,$fromdom,$status,$fromcid)= - &Apache::lonmsg::unpackmsgid($msgid,undef,$skipstatus,undef, + &Apache::lonmsg::unpackmsgid($esc_msgid,undef,$skipstatus,undef, $env{'request.course.id'}); if (($fromcid) && ($fromcid eq $env{'request.course.id'})) { if (defined($sendtime) && $sendtime!~/error/) { @@ -1359,8 +1359,9 @@ sub getcritmail { my $result = ''; my $critmsgcount = 0; foreach my $msgid (sort(keys(%what))) { + my $esc_msgid = &escape($msgid); my ($sendtime,$shortsubj,$fromname,$fromdom,$status,$fromcid)= - &Apache::lonmsg::unpackmsgid($msgid,undef,1,undef, + &Apache::lonmsg::unpackmsgid($esc_msgid,undef,1,undef, $env{'request.course.id'}); if (($fromcid) && ($fromcid eq $env{'request.course.id'})) { if (defined($sendtime) && $sendtime!~/error/) { @@ -1370,7 +1371,7 @@ sub getcritmail { $shortsubj = &mt('No subject'); } push(@{$critmsgs}, { - msgid => $msgid, + msgid => $esc_msgid, sendtime => $sendtime, shortsub => $shortsubj, from => $fromname,