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

raeburn raeburn at source.lon-capa.org
Sat Oct 18 12:49:20 EDT 2014


raeburn		Sat Oct 18 16:49:20 2014 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Eliminate: "get_dom failed - no homeserver and/or domain (public)"
    from lonnet.log 
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1266 loncom/lonnet/perl/lonnet.pm:1.1267
--- loncom/lonnet/perl/lonnet.pm:1.1266	Mon Oct 13 15:46:45 2014
+++ loncom/lonnet/perl/lonnet.pm	Sat Oct 18 16:49:19 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1266 2014/10/13 15:46:45 raeburn Exp $
+# $Id: lonnet.pm,v 1.1267 2014/10/18 16:49:19 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1652,6 +1652,7 @@
 
 sub get_dom {
     my ($namespace,$storearr,$udom,$uhome)=@_;
+    return if ($udom eq 'public');
     my $items='';
     foreach my $item (@$storearr) {
         $items.=&escape($item).'&';
@@ -1659,6 +1660,7 @@
     $items=~s/\&$//;
     if (!$udom) {
         $udom=$env{'user.domain'};
+        return if ($udom eq 'public');
         if (defined(&domain($udom,'primary'))) {
             $uhome=&domain($udom,'primary');
         } else {




More information about the LON-CAPA-cvs mailing list