[LON-CAPA-cvs] cvs: loncom /publisher loncfile.pm

raeburn raeburn@source.lon-capa.org
Fri, 19 Dec 2008 14:01:16 -0000


raeburn		Fri Dec 19 14:01:16 2008 EDT

  Modified files:              
    /loncom/publisher	loncfile.pm 
  Log:
  - Regular Expression for both http and https.
  
  
Index: loncom/publisher/loncfile.pm
diff -u loncom/publisher/loncfile.pm:1.90 loncom/publisher/loncfile.pm:1.91
--- loncom/publisher/loncfile.pm:1.90	Wed Sep 24 17:30:18 2008
+++ loncom/publisher/loncfile.pm	Fri Dec 19 14:01:16 2008
@@ -9,7 +9,7 @@
 #  and displays a page showing the results of the action.
 #
 #
-# $Id: loncfile.pm,v 1.90 2008/09/24 17:30:18 raeburn Exp $
+# $Id: loncfile.pm,v 1.91 2008/12/19 14:01:16 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -159,7 +159,7 @@
     my $Url = shift;
     &Debug($r, "UrlToPath got: $Url");
     $Url=~ s/\/+/\//g;
-    $Url=~ s/^http\:\/\/[^\/]+//;
+    $Url=~ s/^https?\:\/\/[^\/]+//;
     $Url=~ s/^\///;
     $Url=~ s/(\~|priv\/)($match_username)\//\/home\/$2\/public_html\//;
     &Debug($r, "Returning $Url \n");