Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: third_party/apache-win32/cgi-bin/printenv.pl

Issue 147313008: Check Win32 Apache+PHP into third_party (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/apache-win32/bin/zlib1.dll ('k') | third_party/apache-win32/conf/charset.conv » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/apache-win32/cgi-bin/printenv.pl
diff --git a/third_party/apache-win32/cgi-bin/printenv.pl b/third_party/apache-win32/cgi-bin/printenv.pl
new file mode 100644
index 0000000000000000000000000000000000000000..f9c3bd6e903693eebb3e4127cd9b003f19d41a26
--- /dev/null
+++ b/third_party/apache-win32/cgi-bin/printenv.pl
@@ -0,0 +1,13 @@
+#!C:/Perl64/bin/perl.exe
+##
+## printenv -- demo CGI program which just prints its environment
+##
+
+print "Content-type: text/plain; charset=iso-8859-1\n\n";
+foreach $var (sort(keys(%ENV))) {
+ $val = $ENV{$var};
+ $val =~ s|\n|\\n|g;
+ $val =~ s|"|\\"|g;
+ print "${var}=\"${val}\"\n";
+}
+
« no previous file with comments | « third_party/apache-win32/bin/zlib1.dll ('k') | third_party/apache-win32/conf/charset.conv » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698