--- loncom/publisher/loncfile.pm 2011/03/01 01:36:55 1.106 +++ loncom/publisher/loncfile.pm 2011/10/22 21:25:37 1.107 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.106 2011/03/01 01:36:55 raeburn Exp $ +# $Id: loncfile.pm,v 1.107 2011/10/22 21:25:37 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -175,7 +175,8 @@ sub url { sub display { my $fn=shift; - $fn=~s-^/home/($match_username)/public_html-/priv/$1-; + $fn=~s/^\/home\/httpd\/html//; + $fn=~s/\/\.\//\//g; return ''.$fn.''; }