[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lon-capa-cvs
Subject:    [LON-CAPA-cvs] cvs: loncom /auth lonacc.pm
From:       albertel <lon-capa-cvs () mail ! lon-capa ! org>
Date:       2004-12-28 20:28:55
Message-ID: cvsalbertel1104265735 () cvsserver
[Download RAW message or body]

albertel		Tue Dec 28 15:28:55 2004 EDT

  Modified files:              
    /loncom/auth	lonacc.pm 
  Log:
  - one more thing, if they didn't give a symb, and we don't have a symb, we can't \
verify it at this stage, this can happen we things are ambiguous, so pass them by for \
now and we'll disambiguiate later  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.57 loncom/auth/lonacc.pm:1.58
--- loncom/auth/lonacc.pm:1.57	Tue Dec 28 15:18:38 2004
+++ loncom/auth/lonacc.pm	Tue Dec 28 15:28:55 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.57 2004/12/28 20:18:38 albertel Exp $
+# $Id: lonacc.pm,v 1.58 2004/12/28 20:28:55 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -138,10 +138,9 @@
                     }
                 } else {
 	            $symb=&Apache::lonnet::symbread($requrl);
-		    if (&Apache::lonnet::is_on_map($requrl) &&
+		    if (&Apache::lonnet::is_on_map($requrl) && $symb &&
 			!&Apache::lonnet::symbverify($symb,$requrl)) {
-			$r->log_reason('Invalid symb for '.$requrl.': '.
-                                       $symb);
+			$r->log_reason('Invalid symb for '.$requrl.': '.$symb);
 		        $ENV{'user.error.msg'}=
                                 "$requrl:bre:1:1:Invalid Access";
   	                return HTTP_NOT_ACCEPTABLE; 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic