- #!/usr/bin/perl
- # readenv.cgi -- reads the environment, argv, and stdin
- # the first line of this script may have to be changed
- # if your system's Perl interpreter is not located in /usr/bin/perl
- # Written by P. Lutus 2/21 lutusp@arachnoid.com
- }
- if ($ARGV[0]) {
- foreach $n (@ARGV) {
- }
- }
- if($ENV{'CONTENT_LENGTH'}) {
- if($ENV{'CONTENT_LENGTH'} > 0) {
- foreach $pair (@pairs) {
- $name =~ tr/+/ /;
- $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
- $name =~ s/~!/ ~!/g; # Stop people from using subshells to execute commands
- $value =~ tr/+/ /;
- $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
- $value =~ s/~!/ ~!/g; # Stop people from using subshells to execute commands
- }
- }
- }
- print "</PRE></HTML>"