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

www lon-capa-cvs@mail.lon-capa.org
Mon, 06 May 2002 13:52:53 -0000


www		Mon May  6 09:52:53 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  New function to verify validity of a symb, especially for GET-supplied symbs.
  The parameter $thisfn is option - if not present, will be replace by
  $ENV{'request.filename'}
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.211 loncom/lonnet/perl/lonnet.pm:1.212
--- loncom/lonnet/perl/lonnet.pm:1.211	Mon May  6 09:46:41 2002
+++ loncom/lonnet/perl/lonnet.pm	Mon May  6 09:52:53 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.211 2002/05/06 13:46:41 www Exp $
+# $Id: lonnet.pm,v 1.212 2002/05/06 13:52:53 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2515,6 +2515,13 @@
         }
     }
     return 'error';
+}
+
+# --------------------------------------------------------------- Verify a symb
+
+sub symbverify {
+    my ($symb,$thisfn)=@_;
+    return 1;
 }
 
 # --------------------------------------------------------------- Clean-up symb