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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 14 Feb 2002 20:44:27 -0000


albertel		Thu Feb 14 15:44:27 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - need to protext form data
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.200 loncom/lonnet/perl/lonnet.pm:1.201
--- loncom/lonnet/perl/lonnet.pm:1.200	Thu Feb  7 08:56:06 2002
+++ loncom/lonnet/perl/lonnet.pm	Thu Feb 14 15:44:26 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.200 2002/02/07 13:56:06 www Exp $
+# $Id: lonnet.pm,v 1.201 2002/02/14 20:44:26 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -641,7 +641,7 @@
     
     if (%form) {
       $request=new HTTP::Request('POST',"http://".$ENV{'HTTP_HOST'}.$fn);
-      $request->content(join '&', map { "$_=$form{$_}" } keys %form);
+      $request->content(join('&',map { &escape($_).'='.&escape($form{$_}) } keys %form));
     } else {
       $request=new HTTP::Request('GET',"http://".$ENV{'HTTP_HOST'}.$fn);
     }