[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Thu Jul 28 14:22:45 EDT 2011
raeburn Thu Jul 28 18:22:45 2011 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- Bug 6493.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1119 loncom/lonnet/perl/lonnet.pm:1.1120
--- loncom/lonnet/perl/lonnet.pm:1.1119 Mon Jul 18 10:32:48 2011
+++ loncom/lonnet/perl/lonnet.pm Thu Jul 28 18:22:44 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1119 2011/07/18 10:32:48 foxr Exp $
+# $Id: lonnet.pm,v 1.1120 2011/07/28 18:22:44 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1035,15 +1035,19 @@
}
if ($canhost) {
if (ref($hostedsessions) eq 'HASH') {
+ my $uprimary_id = &Apache::lonnet::domain($udom,'primary');
+ my $uint_dom = &Apache::lonnet::internet_dom($uprimary_id);
if (ref($hostedsessions->{'excludedomain'}) eq 'ARRAY') {
- if (grep(/^\Q$udom\E$/,@{$hostedsessions->{'excludedomain'}})) {
+ if (($uint_dom ne '') &&
+ (grep(/^\Q$uint_dom\E$/,@{$hostedsessions->{'excludedomain'}}))) {
$canhost = 0;
} else {
$canhost = 1;
}
}
if (ref($hostedsessions->{'includedomain'}) eq 'ARRAY') {
- if (grep(/^\Q$udom\E$/,@{$hostedsessions->{'includedomain'}})) {
+ if (($uint_dom ne '') &&
+ (grep(/^\Q$uint_dom\E$/,@{$hostedsessions->{'includedomain'}}))) {
$canhost = 1;
} else {
$canhost = 0;
More information about the LON-CAPA-cvs
mailing list