[LON-CAPA-cvs] cvs: rat / lonwrapper.pm
www
lon-capa-cvs@mail.lon-capa.org
Mon, 20 Jan 2003 17:03:25 -0000
www Mon Jan 20 12:03:25 2003 EDT
Modified files:
/rat lonwrapper.pm
Log:
Bug #1181
Set correct permissions to directly access uploaded HTML files.
Index: rat/lonwrapper.pm
diff -u rat/lonwrapper.pm:1.5 rat/lonwrapper.pm:1.6
--- rat/lonwrapper.pm:1.5 Wed Mar 6 10:00:55 2002
+++ rat/lonwrapper.pm Mon Jan 20 12:03:25 2003
@@ -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.6 2003/01/20 17:03:25 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -52,6 +52,9 @@
my $url=$r->uri;
$url=~s/^\/adm\/wrapper//;
$url=~s/^\/ext\//http\:\/\//;
+ if ($url=~/^\/uploaded\//) {
+ $url=&Apache::lonnet::tokenwrapper($url);
+ }
my $events='onLoad="'.&Apache::lonxml::loadevents.
'" onUnload="'.&Apache::lonxml::unloadevents.'"';
my $script=&Apache::lonxml::registerurl(1,undef);