[LON-CAPA-cvs] cvs: loncom /cgi loncgi.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 18 May 2006 14:24:06 -0000


albertel		Thu May 18 10:24:06 2006 EDT

  Modified files:              
    /loncom/cgi	loncgi.pm 
  Log:
  - removal of extra escape/unescape
  
  
Index: loncom/cgi/loncgi.pm
diff -u loncom/cgi/loncgi.pm:1.6 loncom/cgi/loncgi.pm:1.7
--- loncom/cgi/loncgi.pm:1.6	Mon Apr 10 13:46:04 2006
+++ loncom/cgi/loncgi.pm	Thu May 18 10:24:06 2006
@@ -1,7 +1,7 @@
 #
 # LON-CAPA helpers for cgi-bin scripts
 #
-# $Id: loncgi.pm,v 1.6 2006/04/10 17:46:04 albertel Exp $
+# $Id: loncgi.pm,v 1.7 2006/05/18 14:24:06 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -53,9 +53,11 @@
 use warnings FATAL=>'all';
 no warnings 'uninitialized';
 
+use lib '/home/httpd/lib/perl/';
 use CGI();
 use CGI::Cookie();
 use Fcntl qw(:flock);
+use LONCAPA;
 use LONCAPA::Configuration();
 
 my $lonidsdir;
@@ -162,20 +164,6 @@
 #############################################
 #############################################
 
-sub escape {
-    my $str=shift;
-    $str =~ s/(\W)/"%".unpack('H2',$1)/eg;
-    return $str;
-}
-
-# ----------------------------------------------------- Un-Escape Special Chars
-
-sub unescape {
-    my $str=shift;
-    $str =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
-    return $str;
-}
-
 
 =pod