[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

www lon-capa-cvs@mail.lon-capa.org
Sat, 08 May 2004 23:55:35 -0000


www		Sat May  8 19:55:35 2004 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Oops. validate_access_key now uses correct defaults
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.496 loncom/lonnet/perl/lonnet.pm:1.497
--- loncom/lonnet/perl/lonnet.pm:1.496	Sat May  8 12:26:32 2004
+++ loncom/lonnet/perl/lonnet.pm	Sat May  8 19:55:34 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.496 2004/05/08 16:26:32 www Exp $
+# $Id: lonnet.pm,v 1.497 2004/05/08 23:55:34 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -755,8 +755,8 @@
    $ENV{'course.'.$ENV{'request.course.id'}.'.domain'} unless (defined($cdom));
     $cnum=
    $ENV{'course.'.$ENV{'request.course.id'}.'.num'} unless (defined($cnum));
-    $udom=$ENV{'user.name'} unless (defined($udom));
-    $uname=$ENV{'user.domain'} unless (defined($uname));
+    $udom=$ENV{'user.domain'} unless (defined($udom));
+    $uname=$ENV{'user.name'} unless (defined($uname));
     my %existing=&get('accesskeys',[$ckey],$cdom,$cnum);
     return ($existing{$ckey}=~/^\Q$uname\E\:\Q$udom\E\#/);
 }