[LON-CAPA-cvs] cvs: loncom /auth lonracc.pm
www
lon-capa-cvs@mail.lon-capa.org
Mon, 26 Apr 2004 00:07:29 -0000
www Sun Apr 25 20:07:29 2004 EDT
Modified files:
/loncom/auth lonracc.pm
Log:
Copying lines from lontokacc.pm to make DOCS-style courses work on
standalone machines again.
Index: loncom/auth/lonracc.pm
diff -u loncom/auth/lonracc.pm:1.11 loncom/auth/lonracc.pm:1.12
--- loncom/auth/lonracc.pm:1.11 Wed Mar 31 12:42:21 2004
+++ loncom/auth/lonracc.pm Sun Apr 25 20:07:29 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Access Handler for File Transfers
#
-# $Id: lonracc.pm,v 1.11 2004/03/31 17:42:21 raeburn Exp $
+# $Id: lonracc.pm,v 1.12 2004/04/26 00:07:29 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -25,10 +25,6 @@
#
# http://www.lon-capa.org/
#
-# (lonacc: Cookie Based Access Handler
-# 5/21/99,5/22,5/29,5/31,6/15 Gerd Kortemeyer)
-# 6/16,6/18,7/3,
-# 6/30/00 Gerd Kortemeyer
package Apache::lonracc;
@@ -59,6 +55,9 @@
unless ($reqhost) {
$r->log_reason("Spoof request from ".$ENV{'REMOTE_ADDR'});
return FORBIDDEN;
+ }
+ if ($reqhost eq 'localhost.localdomain') {
+ return OK;
}
my $readline;
my $lontabdir=$r->dir_config('lonTabDir');