--- loncom/publisher/loncleanup.pm 2011/10/29 19:17:09 1.14 +++ loncom/publisher/loncleanup.pm 2011/11/03 00:30:32 1.15 @@ -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 @@ sub handler { 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);