[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
www
lon-capa-cvs@mail.lon-capa.org
Tue, 02 Jan 2007 17:54:09 -0000
www Tue Jan 2 12:54:09 2007 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
Fix custom access (thanks Mark!)
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.818 loncom/lonnet/perl/lonnet.pm:1.819
--- loncom/lonnet/perl/lonnet.pm:1.818 Tue Jan 2 07:53:58 2007
+++ loncom/lonnet/perl/lonnet.pm Tue Jan 2 12:54:08 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.818 2007/01/02 12:53:58 raeburn Exp $
+# $Id: lonnet.pm,v 1.819 2007/01/02 17:54:08 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3556,7 +3556,7 @@
sub customaccess {
my ($priv,$uri)=@_;
my ($urole,$urealm)=split(/\./,$env{'request.role'},2);
- my ($udom,$ucrs,$usec)=split(/\//,$urealm);
+ my (undef,$udom,$ucrs,$usec)=split(/\//,$urealm);
$udom = &LONCAPA::clean_domain($udom);
$ucrs = &LONCAPA::clean_username($ucrs);
my $access=0;