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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 23 Dec 2004 19:40:13 -0000


albertel		Thu Dec 23 14:40:13 2004 EDT

  Modified files:              
    /loncom/auth	lonacc.pm 
  Log:
  - /res/adm things don't have symbs
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.55 loncom/auth/lonacc.pm:1.56
--- loncom/auth/lonacc.pm:1.55	Mon Dec 20 15:51:23 2004
+++ loncom/auth/lonacc.pm	Thu Dec 23 14:40:12 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.55 2004/12/20 20:51:23 albertel Exp $
+# $Id: lonacc.pm,v 1.56 2004/12/23 19:40:12 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -138,7 +138,8 @@
                     }
                 } else {
 	            $symb=&Apache::lonnet::symbread($requrl);
-		    if (!&Apache::lonnet::symbverify($symb,$requrl)) {
+		    if ($requrl !~ m|^/res/adm/| &&
+			!&Apache::lonnet::symbverify($symb,$requrl)) {
 			$r->log_reason('Invalid symb for '.$requrl.': '.
                                        $symb);
 		        $ENV{'user.error.msg'}=