--- loncom/interface/londocs.pm 2016/11/23 01:28:50 1.612 +++ loncom/interface/londocs.pm 2016/11/26 01:28:14 1.614 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.612 2016/11/23 01:28:50 raeburn Exp $ +# $Id: londocs.pm,v 1.614 2016/11/26 01:28:14 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3951,6 +3951,9 @@ END my $shownurl = &Apache::lonenc::encrypted($url); if (&Apache::lonnet::symbverify($shownsymb,$shownurl)) { $url = $shownurl.(($shownurl=~/\?/)?'&':'?').'symb='.&HTML::Entities::encode($shownsymb,'"<>&'); + if ($env{'request.enc'} ne '') { + delete($env{'request.enc'}); + } } else { $url=''; } @@ -6676,6 +6679,8 @@ sub editing_js { if (($caller =~ m{^([^#]+)\Q#$anchor\E$})) { $caller = $1.&escape('#').$anchor; } + } else { + $url = $res; } $backtourl = &HTML::Entities::encode(&Apache::lonnet::clutter($url),'<>&"').'?symb='. &HTML::Entities::encode($caller,'<>&"');