[LON-CAPA-cvs] cvs: loncom /auth publiccheck.pm

raeburn raeburn at source.lon-capa.org
Fri Feb 8 11:23:56 EST 2013


raeburn		Fri Feb  8 16:23:56 2013 EDT

  Modified files:              
    /loncom/auth	publiccheck.pm 
  Log:
  - Setting of $r->user() not required prior to Apache 2.4.
  
  
Index: loncom/auth/publiccheck.pm
diff -u loncom/auth/publiccheck.pm:1.20 loncom/auth/publiccheck.pm:1.21
--- loncom/auth/publiccheck.pm:1.20	Tue Feb  5 21:32:45 2013
+++ loncom/auth/publiccheck.pm	Fri Feb  8 16:23:56 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: publiccheck.pm,v 1.20 2013/02/05 21:32:45 raeburn Exp $
+# $Id: publiccheck.pm,v 1.21 2013/02/08 16:23:56 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -44,14 +44,14 @@
     my $requrl=$r->uri;
 
     if (&Apache::lonnet::is_domainimage($requrl)) {
-        if ($r->user() eq '') {
+        if (($r->user() eq '') && ($Apache::lonnet::apache >= 2.4)) {
             $r->user('public');
         }
         return OK;
     }
 
     if ($requrl =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) {
-        if ($r->user() eq '') {
+        if (($r->user() eq '') && ($Apache::lonnet::apache >= 2.4)) {
             $r->user('public');
         }
         return OK;




More information about the LON-CAPA-cvs mailing list