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

raeburn raeburn@source.lon-capa.org
Fri, 19 Dec 2008 13:47:41 -0000


raeburn		Fri Dec 19 13:47:41 2008 EDT

  Modified files:              
    /rat	lonwrapper.pm 
  Log:
  - Regular Expression for both http and https.
  
  
Index: rat/lonwrapper.pm
diff -u rat/lonwrapper.pm:1.30 rat/lonwrapper.pm:1.31
--- rat/lonwrapper.pm:1.30	Thu Nov 20 14:38:00 2008
+++ rat/lonwrapper.pm	Fri Dec 19 13:47:40 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Wrapper for external and binary files as standalone resources
 #
-# $Id: lonwrapper.pm,v 1.30 2008/11/20 14:38:00 jms Exp $
+# $Id: lonwrapper.pm,v 1.31 2008/12/19 13:47:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -89,7 +89,7 @@
 	&Apache::loncommon::end_page({'frameset' => 1});
     
     foreach my $url ($topurl,$bottomurl) {
-	if ($url !~ /^http:/) {
+	if ($url !~ /^https?:/) {
 	    $url = &Apache::lonenc::check_encrypt($url);
 	}
     }