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

raeburn raeburn at source.lon-capa.org
Wed Nov 2 20:30:32 EDT 2011


raeburn		Thu Nov  3 00:30:32 2011 EDT

  Modified files:              
    /loncom/publisher	loncleanup.pm 
  Log:
  - coding style
    - eliminate leaning toothpicks
  
  
Index: loncom/publisher/loncleanup.pm
diff -u loncom/publisher/loncleanup.pm:1.14 loncom/publisher/loncleanup.pm:1.15
--- loncom/publisher/loncleanup.pm:1.14	Sat Oct 29 19:17:09 2011
+++ loncom/publisher/loncleanup.pm	Thu Nov  3 00:30:32 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to cleanup XML files
 #
-# $Id: loncleanup.pm,v 1.14 2011/10/29 19:17:09 raeburn Exp $
+# $Id: loncleanup.pm,v 1.15 2011/11/03 00:30:32 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -393,7 +393,7 @@
 
     if ($env{'form.filename'}) {
 	$fn=$env{'form.filename'};
-	$fn=~s/^https?\:\/\/[^\/]+//;
+	$fn=~s{^https?\://[^/]+}{};
     } else {
 	$r->log_reason($env{'user.name'}.' at '.$env{'user.domain'}.
 		       ' unspecified filename for cleanup', $r->filename); 




More information about the LON-CAPA-cvs mailing list