[LON-CAPA-cvs] cvs: loncom /interface londocs.pm

raeburn raeburn at source.lon-capa.org
Wed Nov 23 11:42:25 EST 2016


raeburn		Wed Nov 23 16:42:25 2016 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - encrypturl parameter set in map applies to link in folder listing in 
    Course Editor, when a custom role has mdc or cev priv at course level,
    but no adv priv at system level.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.612 loncom/interface/londocs.pm:1.613
--- loncom/interface/londocs.pm:1.612	Wed Nov 23 01:28:50 2016
+++ loncom/interface/londocs.pm	Wed Nov 23 16:42:25 2016
@@ -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.613 2016/11/23 16:42:25 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3951,6 +3951,9 @@
                 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='';
                 }




More information about the LON-CAPA-cvs mailing list