--- loncom/publisher/lonupload.pm 2008/12/12 02:42:49 1.38.2.1 +++ loncom/publisher/lonupload.pm 2008/12/21 04:43:41 1.38.2.3 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # Handler to upload files into construction space # -# $Id: lonupload.pm,v 1.38.2.1 2008/12/12 02:42:49 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 # @@ -117,7 +117,7 @@ sub phaseone { if ($fn=~/\.(\w+)$/ && (&Apache::loncommon::fileembstyle($1) eq 'hdn')) { $r->print('

' - .&mt('The extension on this file, [_1], is reserved internally by LON-CAPA.','"'.$1.'"' ). + .&mt('The extension on this file, [_1], is reserved internally by LON-CAPA.','"'.$1.'"' ) .'
'.&mt('Please change the extension.') .'

'); } elsif($fn=~/\.(\w+)$/ && @@ -335,7 +335,7 @@ function verifyForm() { 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;