--- loncom/lonnet/perl/lonnet.pm 2006/10/27 21:54:40 1.800 +++ loncom/lonnet/perl/lonnet.pm 2006/11/10 02:04:31 1.802 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.800 2006/10/27 21:54:40 albertel Exp $ +# $Id: lonnet.pm,v 1.802 2006/11/10 02:04:31 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3219,12 +3219,15 @@ sub eget { # ------------------------------------------------------------ tmpput interface sub tmpput { - my ($storehash,$server)=@_; + my ($storehash,$server,$context)=@_; my $items=''; foreach my $item (keys(%$storehash)) { $items.=&escape($item).'='.&freeze_escape($$storehash{$item}).'&'; } $items=~s/\&$//; + if (defined($context)) { + $items .= ':'.&escape($context); + } return &reply("tmpput:$items",$server); } @@ -7236,7 +7239,7 @@ BEGIN { while (my $line = <$fh>) { next if ($line =~ /^(\#|\s*$)/); # next if /^\#/; - chomp; + chomp $line; my ($domain, $domain_description, $def_auth, $def_auth_arg, $def_lang, $city, $longi, $lati, $primary) = split(/:/,$line,9); $domain_auth_def{$domain}=$def_auth;