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

raeburn raeburn at source.lon-capa.org
Fri Oct 11 21:15:39 EDT 2013


raeburn		Sat Oct 12 01:15:39 2013 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Sanity checking.
  - No domain defaults for domain: "public". 
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1241 loncom/lonnet/perl/lonnet.pm:1.1242
--- loncom/lonnet/perl/lonnet.pm:1.1241	Sun Oct  6 20:33:51 2013
+++ loncom/lonnet/perl/lonnet.pm	Sat Oct 12 01:15:38 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1241 2013/10/06 20:33:51 raeburn Exp $
+# $Id: lonnet.pm,v 1.1242 2013/10/12 01:15:38 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1988,6 +1988,7 @@
 
 sub get_domain_defaults {
     my ($domain,$ignore_cache) = @_;
+    return if (($domain eq '') || ($domain eq 'public'));
     my $cachetime = 60*60*24;
     unless ($ignore_cache) {
         my ($result,$cached)=&is_cached_new('domdefaults',$domain);
@@ -6204,7 +6205,7 @@
     }
     return if (!defined($tools{$tool}));
 
-    if ((!defined($udom)) || (!defined($uname))) {
+    if (($udom eq '') || ($uname eq '')) {
         $udom = $env{'user.domain'};
         $uname = $env{'user.name'};
     }




More information about the LON-CAPA-cvs mailing list