--- rat/lonpage.pm 2020/03/05 20:46:04 1.111.2.11 +++ rat/lonpage.pm 2020/03/12 07:46:14 1.111.2.12 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Page Handler # -# $Id: lonpage.pm,v 1.111.2.11 2020/03/05 20:46:04 raeburn Exp $ +# $Id: lonpage.pm,v 1.111.2.12 2020/03/12 07:46:14 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -328,7 +328,7 @@ sub handler { if (($hash{'encrypted_'.$_}) && ($symb) && (!$env{'request.role.adv'})) { $showsrc .= '?symb='.&Apache::lonenc::encrypted($symb); } elsif ($anchor) { - $showsrc .= $anchor + $showsrc .= $anchor; } $ssibody{$_} = <No iframe support! @@ -850,7 +850,12 @@ sub get_buttons { if (($hash->{'encrypted_'.$rid}) && (!$env{'request.role.adv'})) { $aname = 'LC_'.$rid; } else { - $aname = &escape($symb); + my $shownsymb = $symb; + if ($symb =~ /\#([^\#]+)$/) { + my $escan = &escape('#'); + $shownsymb =~ s/#([^\#]+)$/$escan$1/; + } + $aname = &escape($shownsymb); } my $metainfo = ''; unless ($env{'request.role.adv'}) {