[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

www lon-capa-cvs@mail.lon-capa.org
Mon, 27 May 2002 19:03:59 -0000


www		Mon May 27 15:03:59 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Mark checkout tokens as such with keyword "CHECKOUTTOKEN&". Towards Bug #240.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.233 loncom/lonnet/perl/lonnet.pm:1.234
--- loncom/lonnet/perl/lonnet.pm:1.233	Thu May 23 17:24:13 2002
+++ loncom/lonnet/perl/lonnet.pm	Mon May 27 15:03:59 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.233 2002/05/23 21:24:13 albertel Exp $
+# $Id: lonnet.pm,v 1.234 2002/05/27 19:03:59 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -799,6 +799,7 @@
     my $now=time;
     my $lonhost=$perlvar{'lonHostID'};
     my $infostr=&escape(
+                 'CHECKOUTTOKEN&'.
                  $tuname.'&'.
                  $tudom.'&'.
                  $tcrsid.'&'.
@@ -848,7 +849,7 @@
     $lonhost=~tr/A-Z/a-z/;
     my $dtoken=$ta.'_'.$hostip{$lonhost}.'_'.$tb;
     $dtoken=~s/\W/\_/g;
-    my ($tuname,$tudom,$tcrsid,$symb,$chtim,$rmaddr)=
+    my ($dummy,$tuname,$tudom,$tcrsid,$symb,$chtim,$rmaddr)=
                  split(/\&/,&unescape(&reply('tmpget:'.$dtoken,$lonhost)));
 
     unless (($tuname) && ($tudom)) {