[LON-CAPA-cvs] cvs: loncom /auth lonacc.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 28 Dec 2004 20:28:55 -0000
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;