Diff for /loncom/auth/switchserver.pm between versions 1.28 and 1.29

version 1.28, 2010/07/22 21:44:25 version 1.29, 2010/08/18 19:25:12
Line 120  sub handler { Line 120  sub handler {
         my $canhost = 1;          my $canhost = 1;
         my $uprimary_id = &Apache::lonnet::domain($env{'user.domain'},'primary');          my $uprimary_id = &Apache::lonnet::domain($env{'user.domain'},'primary');
         my $uint_dom = &Apache::lonnet::internet_dom($uprimary_id);          my $uint_dom = &Apache::lonnet::internet_dom($uprimary_id);
         my @intdoms = &Apache::lonnet::get_internet_names($env{'form.otherserver'});          my @intdoms;
           my $internet_names = &Apache::lonnet::get_internet_names($env{'form.otherserver'});
           if (ref($internet_names) eq 'ARRAY') {
               @intdoms = @{$internet_names};
           }
         unless ($uint_dom ne '' && grep(/^\Q$uint_dom\E$/,@intdoms)) {          unless ($uint_dom ne '' && grep(/^\Q$uint_dom\E$/,@intdoms)) {
             my $serverhomeID = &Apache::lonnet::get_server_homeID($switch_to);              my $serverhomeID = &Apache::lonnet::get_server_homeID($switch_to);
             my $serverhomedom = &Apache::lonnet::host_domain($serverhomeID);              my $serverhomedom = &Apache::lonnet::host_domain($serverhomeID);

Removed from v.1.28  
changed lines
  Added in v.1.29


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>