From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/civetweb/test/env.cgi | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 src/civetweb/test/env.cgi (limited to 'src/civetweb/test/env.cgi') diff --git a/src/civetweb/test/env.cgi b/src/civetweb/test/env.cgi new file mode 100755 index 00000000..479e1fd3 --- /dev/null +++ b/src/civetweb/test/env.cgi @@ -0,0 +1,46 @@ +#!/usr/bin/env perl + +use Cwd; +use CGI; + +use vars '%in'; +CGI::ReadParse(); + +print "Content-Type: text/html\r\n\r\n"; + +print "
\n";
+foreach my $key (sort keys %ENV) {
+	print "$key=$ENV{$key}\n";
+}
+
+print "\n";
+
+foreach my $key (sort keys %in) {
+	print "$key=$in{$key}\n";
+}
+
+print "\n";
+
+print 'CURRENT_DIR=' . getcwd() . "\n";
+print "
\n"; + +my $stuff = < + function set_val() { + } + +
+ + + +
+ +
+ + +
+EOP + +#system('some shit'); + +print $stuff; -- cgit v1.2.3