[LON-CAPA-cvs] cvs: loncom(version_2_8_X) /publisher lonupload.pm
raeburn
raeburn@source.lon-capa.org
Sun, 21 Dec 2008 04:43:41 -0000
raeburn Sun Dec 21 04:43:41 2008 EDT
Modified files: (Branch: version_2_8_X)
/loncom/publisher lonupload.pm
Log:
- Backport 1.43.
Index: loncom/publisher/lonupload.pm
diff -u loncom/publisher/lonupload.pm:1.38.2.2 loncom/publisher/lonupload.pm:1.38.2.3
--- loncom/publisher/lonupload.pm:1.38.2.2 Wed Dec 17 19:18:47 2008
+++ loncom/publisher/lonupload.pm Sun Dec 21 04:43:41 2008
@@ -2,7 +2,7 @@
# The LearningOnline Network with CAPA
# Handler to upload files into construction space
#
-# $Id: lonupload.pm,v 1.38.2.2 2008/12/17 19:18:47 raeburn Exp $
+# $Id: lonupload.pm,v 1.38.2.3 2008/12/21 04:43:41 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -335,7 +335,7 @@
my $fn;
if ($env{'form.filename'}) {
$fn=$env{'form.filename'};
- $fn=~s/^http\:\/\/[^\/]+\///;
+ $fn=~s/^https?\:\/\/[^\/]+\///;
$fn=~s/^\///;
$fn=~s{(~|priv/)($LONCAPA::username_re)}{};
$fn=~s/\/+/\//g;