[LON-CAPA-cvs] cvs: loncom / lond
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 18 May 2006 19:58:02 -0000
albertel Thu May 18 15:58:02 2006 EDT
Modified files:
/loncom lond
Log:
- session env is now stored escaped
Index: loncom/lond
diff -u loncom/lond:1.329 loncom/lond:1.330
--- loncom/lond:1.329 Thu May 18 13:55:49 2006
+++ loncom/lond Thu May 18 15:57:59 2006
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.329 2006/05/18 17:55:49 www Exp $
+# $Id: lond,v 1.330 2006/05/18 19:57:59 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -60,7 +60,7 @@
my $lastlog='';
my $lond_max_wait_time = 13;
-my $VERSION='$Revision: 1.329 $'; #' stupid emacs
+my $VERSION='$Revision: 1.330 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -2312,7 +2312,9 @@
if (open(ENVIN,$perlvar{'lonIDsDir'}.'/'.
$session.'.id')) {
while (my $line=<ENVIN>) {
- if ($line=~ m|userfile\.\Q$fname\E\=|) { $reply="ok\n"; }
+ my ($envname)=split(/=/,$line,2);
+ $envname=&unescape($envname);
+ if ($envname=~ m|^userfile\.\Q$fname\E|) { $reply="ok\n"; }
}
close(ENVIN);
&Reply($client, $reply, "$cmd:$tail");