~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to docs/cgi-examples/printenv

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/local/bin/perl
 
2
##
 
3
##  printenv -- demo CGI program which just prints its environment
 
4
##
 
5
 
 
6
print "Content-type: text/plain; charset=iso-8859-1\n\n";
 
7
foreach $var (sort(keys(%ENV))) {
 
8
    $val = $ENV{$var};
 
9
    $val =~ s|\n|\\n|g;
 
10
    $val =~ s|"|\\"|g;
 
11
    print "${var}=\"${val}\"\n";
 
12
}
 
13