[LON-CAPA-cvs] cvs: rat / lonwrapper.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 29 Sep 2006 18:35:43 -0000


albertel		Fri Sep 29 14:35:43 2006 EDT

  Modified files:              
    /rat	lonwrapper.pm 
  Log:
  - bug#5029, might need to enc urls in the frameset
  
  
Index: rat/lonwrapper.pm
diff -u rat/lonwrapper.pm:1.23 rat/lonwrapper.pm:1.24
--- rat/lonwrapper.pm:1.23	Tue Apr 11 15:42:32 2006
+++ rat/lonwrapper.pm	Fri Sep 29 14:35:42 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Wrapper for external and binary files as standalone resources
 #
-# $Id: lonwrapper.pm,v 1.23 2006/04/11 19:42:32 albertel Exp $
+# $Id: lonwrapper.pm,v 1.24 2006/09/29 18:35:42 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -32,7 +32,8 @@
 use Apache::Constants qw(:common);
 use Apache::lonnet;
 use Apache::lonxml();
-use Apache::lonmenu;
+use Apache::lonenc();
+use Apache::lonmenu();
 
 # ================================================================ Main Handler
 
@@ -81,8 +82,12 @@
 
     my $end_page = 
 	&Apache::loncommon::end_page({'frameset' => 1});
-
-  
+    
+    foreach my $url ($topurl,$bottomurl) {
+	if ($url !~ /^http:/) {
+	    $url = &Apache::lonenc::check_encrypt($url);
+	}
+    }
 #
 # frame-based rendering for graphical interface
 #