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

raeburn raeburn@source.lon-capa.org
Wed, 24 Dec 2008 07:58:34 -0000


raeburn		Wed Dec 24 07:58:34 2008 EDT

  Modified files:              
    /loncom/publisher	loncleanup.pm 
  Log:
  - Regular Expressions for both http and https.
  
  
Index: loncom/publisher/loncleanup.pm
diff -u loncom/publisher/loncleanup.pm:1.9 loncom/publisher/loncleanup.pm:1.10
--- loncom/publisher/loncleanup.pm:1.9	Wed Dec 20 22:41:08 2006
+++ loncom/publisher/loncleanup.pm	Wed Dec 24 07:58:34 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to cleanup XML files
 #
-# $Id: loncleanup.pm,v 1.9 2006/12/20 22:41:08 albertel Exp $
+# $Id: loncleanup.pm,v 1.10 2008/12/24 07:58:34 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -335,7 +335,7 @@
 
     if ($env{'form.filename'}) {
 	$fn=$env{'form.filename'};
-	$fn=~s/^http\:\/\/[^\/]+//;
+	$fn=~s/^https?\:\/\/[^\/]+//;
     } else {
 	$r->log_reason($env{'user.name'}.' at '.$env{'user.domain'}.
 		       ' unspecified filename for cleanup', $r->filename);