--- loncom/publisher/lonupload.pm 2008/12/12 02:32:27 1.42 +++ loncom/publisher/lonupload.pm 2009/03/26 16:50:12 1.44 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # Handler to upload files into construction space # -# $Id: lonupload.pm,v 1.42 2008/12/12 02:32:27 raeburn Exp $ +# $Id: lonupload.pm,v 1.44 2009/03/26 16:50:12 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -421,7 +421,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; @@ -444,8 +444,10 @@ function verifyForm() { $javascript)); if (($uname ne $env{'user.name'}) || ($udom ne $env{'user.domain'})) { - $r->print('

'.&mt('Co-Author').': '.$uname. - &mt(' at ').$udom.'

'); + $r->print('

' + .&mt('Co-Author [_1]:[_2]',$uname,$udom) + .'

' + ); } if ($env{'form.phase'} eq 'three') {