[LON-CAPA-cvs] cvs: loncom /auth publiccheck.pm
raeburn
raeburn@source.lon-capa.org
Wed, 14 Jan 2009 15:36:42 -0000
raeburn Wed Jan 14 15:36:42 2009 EDT
Modified files:
/loncom/auth publiccheck.pm
Log:
- Skip check for icons etc. in /res/adm/pages
Index: loncom/auth/publiccheck.pm
diff -u loncom/auth/publiccheck.pm:1.15 loncom/auth/publiccheck.pm:1.16
--- loncom/auth/publiccheck.pm:1.15 Tue Oct 2 01:09:59 2007
+++ loncom/auth/publiccheck.pm Wed Jan 14 15:36:42 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Cookie Based Access Handler
#
-# $Id: publiccheck.pm,v 1.15 2007/10/02 01:09:59 albertel Exp $
+# $Id: publiccheck.pm,v 1.16 2009/01/14 15:36:42 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -42,10 +42,15 @@
my $r = shift;
my $requrl=$r->uri;
+
if (&Apache::lonnet::is_domainimage($requrl)) {
return OK;
}
+ if ($requrl =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) {
+ return OK;
+ }
+
my $handle = &Apache::lonnet::check_for_valid_session($r);
if ($handle ne '') {
my $lonidsdir=$r->dir_config('lonIDsDir');