--- loncom/lonnet/perl/lonnet.pm 2002/08/13 14:37:52 1.267 +++ loncom/lonnet/perl/lonnet.pm 2002/08/17 18:23:27 1.268 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.267 2002/08/13 14:37:52 albertel Exp $ +# $Id: lonnet.pm,v 1.268 2002/08/17 18:23:27 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3135,6 +3135,14 @@ sub declutter { return $thisfn; } +# ------------------------------------------------------------- Clutter up URLs + +sub clutter { + my $thisfn='/'.&declutter(shift); + unless ($thisfn=~/^\/(uploaded|adm)\//) { $thisfn='/res'.$thisfn; } + return $thisfn; +} + # -------------------------------------------------------- Escape Special Chars sub escape {