[LON-CAPA-cvs] cvs: loncom /publisher lonretrieve.pm
raeburn
raeburn@source.lon-capa.org
Fri, 19 Dec 2008 03:55:25 -0000
raeburn Fri Dec 19 03:55:25 2008 EDT
Modified files:
/loncom/publisher lonretrieve.pm
Log:
- Regular Expression for both http and https.
Index: loncom/publisher/lonretrieve.pm
diff -u loncom/publisher/lonretrieve.pm:1.36 loncom/publisher/lonretrieve.pm:1.37
--- loncom/publisher/lonretrieve.pm:1.36 Thu Nov 20 18:03:55 2008
+++ loncom/publisher/lonretrieve.pm Fri Dec 19 03:55:25 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to retrieve an old version of a file
#
-# $Id: lonretrieve.pm,v 1.36 2008/11/20 18:03:55 bisitz Exp $
+# $Id: lonretrieve.pm,v 1.37 2008/12/19 03:55:25 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -289,7 +289,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 retrieval', $r->filename);