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

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 18 Jun 2003 19:10:23 -0000


albertel		Wed Jun 18 15:10:23 2003 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - allow form parms in ssi_body calls
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.380 loncom/lonnet/perl/lonnet.pm:1.381
--- loncom/lonnet/perl/lonnet.pm:1.380	Mon Jun 16 21:38:14 2003
+++ loncom/lonnet/perl/lonnet.pm	Wed Jun 18 15:10:23 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.380 2003/06/17 01:38:14 albertel Exp $
+# $Id: lonnet.pm,v 1.381 2003/06/18 19:10:23 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -982,9 +982,9 @@
 
 # ------------------------------------------------ Get server side include body
 sub ssi_body {
-    my $filelink=shift;
+    my ($filelink,%form)=@_;
     my $output=($filelink=~/^http\:/?&externalssi($filelink):
-                                     &ssi($filelink));
+                                     &ssi($filelink,%form));
     $output=~s/^.*\<body[^\>]*\>//si;
     $output=~s/\<\/body\s*\>.*$//si;
     $output=~