[LON-CAPA-cvs] cvs: loncom(version_2_1_X) /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sat, 07 Jan 2006 00:28:35 -0000
albertel Fri Jan 6 19:28:35 2006 EDT
Modified files: (Branch: version_2_1_X)
/loncom/lonnet/perl lonnet.pm
Log:
- backport 1.690
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.683.2.5 loncom/lonnet/perl/lonnet.pm:1.683.2.6
--- loncom/lonnet/perl/lonnet.pm:1.683.2.5 Thu Jan 5 14:39:52 2006
+++ loncom/lonnet/perl/lonnet.pm Fri Jan 6 19:28:34 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.683.2.5 2006/01/05 19:39:52 albertel Exp $
+# $Id: lonnet.pm,v 1.683.2.6 2006/01/07 00:28:34 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -271,7 +271,7 @@
my %Remove;
for ($envi=0;$envi<=$#profile;$envi++) {
chomp($profile[$envi]);
- my ($envname,$envvalue)=split(/=/,$profile[$envi]);
+ my ($envname,$envvalue)=split(/=/,$profile[$envi],2);
$env{$envname} = $envvalue;
if (my ($key,$time) = ($envname =~ /^(cgi\.(\d+)_\d+\.)/)) {
if ($time < time-300) {
@@ -323,7 +323,7 @@
for (my $i=0; $i<=$#oldenv; $i++) {
chomp($oldenv[$i]);
if ($oldenv[$i] ne '') {
- my ($name,$value)=split(/=/,$oldenv[$i]);
+ my ($name,$value)=split(/=/,$oldenv[$i],2);
unless (defined($newenv{$name})) {
$newenv{$name}=$value;
}
@@ -382,7 +382,7 @@
}
foreach (@oldenv) {
if ($_=~/^$delthis/) {
- my ($key,undef) = split('=',$_);
+ my ($key,undef) = split('=',$_,2);
delete($env{$key});
} else {
print $fh $_;