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

banghart lon-capa-cvs@mail.lon-capa.org
Thu, 30 Nov 2006 23:35:39 -0000


banghart		Thu Nov 30 18:35:39 2006 EDT

  Modified files:              
    /rat	lonwrapper.pm 
  Log:
  	Bug 5094. Display external resources beginning with https.
  
  
Index: rat/lonwrapper.pm
diff -u rat/lonwrapper.pm:1.24 rat/lonwrapper.pm:1.25
--- rat/lonwrapper.pm:1.24	Fri Sep 29 14:35:42 2006
+++ rat/lonwrapper.pm	Thu Nov 30 18:35:38 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Wrapper for external and binary files as standalone resources
 #
-# $Id: lonwrapper.pm,v 1.24 2006/09/29 18:35:42 albertel Exp $
+# $Id: lonwrapper.pm,v 1.25 2006/11/30 23:35:38 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -123,6 +123,7 @@
     $url=~s/^\/adm\/wrapper//;
     my $is_ext = $url =~ m|^/ext/|;
     $url=~s/^\/ext\//http\:\/\//;
+    $url=~s|http://https://|https://|;
     $url=~s|:|:|g;
 #
 # Actual URL