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

raeburn lon-capa-cvs@mail.lon-capa.org
Sun, 24 Dec 2006 21:13:40 -0000


raeburn		Sun Dec 24 16:13:40 2006 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  &get_student_answers() needs to encrypt the url in the ssi call if the resource currently has the url set to be hidden.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.496 loncom/interface/loncommon.pm:1.497
--- loncom/interface/loncommon.pm:1.496	Sat Dec 23 02:17:34 2006
+++ loncom/interface/loncommon.pm	Sun Dec 24 16:13:37 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.496 2006/12/23 07:17:34 albertel Exp $
+# $Id: loncommon.pm,v 1.497 2006/12/24 21:13:37 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,6 +59,7 @@
 use GDBM_File;
 use POSIX qw(strftime mktime);
 use Apache::lonmenu();
+use Apache::lonenc;
 use Apache::lonlocal;
 use HTML::Entities;
 use Apache::lonhtmlcommon();
@@ -2690,7 +2691,9 @@
   }
   $moreenv{'grade_target'}='answer';
   %moreenv=(%form,%moreenv);
-  my $userview=&Apache::lonnet::ssi('/res/'.$feedurl,%moreenv);
+  $feedurl = &Apache::lonnet::clutter($feedurl);
+  &Apache::lonenc::check_encrypt(\$feedurl);
+  my $userview=&Apache::lonnet::ssi($feedurl,%moreenv);
   return $userview;
 }