--- loncom/publisher/loncfile.pm 2008/05/27 17:33:28 1.89 +++ loncom/publisher/loncfile.pm 2009/04/04 21:45:57 1.95 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.89 2008/05/27 17:33:28 www Exp $ +# $Id: loncfile.pm,v 1.95 2009/04/04 21:45:57 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -159,7 +159,7 @@ sub URLToPath { my $Url = shift; &Debug($r, "UrlToPath got: $Url"); $Url=~ s/\/+/\//g; - $Url=~ s/^http\:\/\/[^\/]+//; + $Url=~ s/^https?\:\/\/[^\/]+//; $Url=~ s/^\///; $Url=~ s/(\~|priv\/)($match_username)\//\/home\/$2\/public_html\//; &Debug($r, "Returning $Url \n"); @@ -361,13 +361,20 @@ sub cleanDest { my ($newpath)=($dest=~m|(.*)/|); $newpath=&relativeDest($fn,$newpath,$uname); if (! -d "$newpath") { - $request->print("
".&mt('You have requested to create file in directory [_1] which doesn\'t exist. The requested directory path has been removed from the requested file name.','"'.&display($newpath).'"')."
"); + $request->print('' + .&mt("You have requested to create file in directory [_1] which doesn't exist. The requested directory path has been removed from the requested file name." + ,'"'.&display($newpath).'"') + .'
'); $dest=~s|.*/||; } } if ($dest =~ /\.(\d+)\.(\w+)$/){ $request->print('' - .&mt('Bad filename [_1].'.&mt('Make new directory').' '. @@ -726,7 +733,7 @@ sub NewDir1 { sub Decompress1 { my ($request, $user, $domain, $fn) = @_; if( -e $fn) { - $request->print(''); + $request->print(''); $request->print('
'.&mt('Decompress').' '.&display($fn).'?
'); &CloseForm1($request, $fn); } else { @@ -1341,10 +1348,9 @@ sub handler { $js = qq| |; @@ -1358,8 +1364,10 @@ function writeDone() { $r->print('' + .&mt('Co-Author [_1]:[_2]',$uname,$udom) + .'
' + ); }