[LON-CAPA-cvs] cvs: loncom /auth lonacc.pm
www
lon-capa-cvs@mail.lon-capa.org
Wed, 16 Apr 2003 15:59:15 -0000
www Wed Apr 16 11:59:15 2003 EDT
Modified files:
/loncom/auth lonacc.pm
Log:
For the reload button on the inline remote to work, "last_known" in symblist
must be set correctly.
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.43 loncom/auth/lonacc.pm:1.44
--- loncom/auth/lonacc.pm:1.43 Sat Apr 12 11:58:43 2003
+++ loncom/auth/lonacc.pm Wed Apr 16 11:59:15 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Cookie Based Access Handler
#
-# $Id: lonacc.pm,v 1.43 2003/04/12 15:58:43 www Exp $
+# $Id: lonacc.pm,v 1.44 2003/04/16 15:59:15 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -177,7 +177,8 @@
&Apache::lonnet::countacc($requrl);
$requrl=~/\.(\w+)$/;
if ((&Apache::loncommon::fileembstyle($1) eq 'ssi') ||
- ($requrl=~/^\/adm\/.*\/(aboutme|navmaps|smppg|bulletinboard|wrapper)(\?|$)/) ||
+ ($requrl=~/^\/adm\/.*\/(aboutme|navmaps|smppg|bulletinboard)(\?|$)/) ||
+ ($requrl=~/^\/adm\/wrapper\//) ||
($requrl=~/^\/public\/.*\/syllabus$/)) {
# ------------------------------------- This is serious stuff, get symb and log
my $query=$r->args;
@@ -199,7 +200,10 @@
return HTTP_NOT_ACCEPTABLE;
}
} else {
- $symb=&Apache::lonnet::symbread;
+ $symb=&Apache::lonnet::symbread($requrl);
+ my ($map,$mid,$murl)=split(/\_\_\_/,$symb);
+ &Apache::lonnet::symblist($map,$murl => $mid,
+ 'last_known' => $murl);
}
$ENV{'request.symb'}=$symb;
&Apache::lonnet::courseacclog($symb);