--- rat/lonwrapper.pm 2002/03/06 15:00:55 1.5 +++ rat/lonwrapper.pm 2003/02/07 22:53:13 1.7 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.5 2002/03/06 15:00:55 matthew Exp $ +# $Id: lonwrapper.pm,v 1.7 2003/02/07 22:53:13 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -52,6 +52,10 @@ sub handler { my $url=$r->uri; $url=~s/^\/adm\/wrapper//; $url=~s/^\/ext\//http\:\/\//; + if ($url=~/^\/uploaded\//) { + $url=&Apache::lonnet::tokenwrapper($url); + } + $url.='?'.$ENV{'QUERY_STRING'}; #reappend the query arguments my $events='onLoad="'.&Apache::lonxml::loadevents. '" onUnload="'.&Apache::lonxml::unloadevents.'"'; my $script=&Apache::lonxml::registerurl(1,undef);