Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item14180: Show more ENV variables.
These might be helpful for bootstrap.
  • Loading branch information
gac410 committed Sep 22, 2016
1 parent 658a221 commit c6bd9e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/lib/Foswiki/Macros/SERVERINFORMATION.pm
Expand Up @@ -82,9 +82,17 @@ DONE
qw/PATH MOD_PERL MOD_PERL_API_VERSION/,
);

# Yes this duplicates the keys, but it lets the code
# report "undef" for variables which might be important.
push @cgivars, keys %ENV;

my $lastkey = '';
foreach my $key ( sort @cgivars ) {

#foreach my $key ( sort keys %ENV ) {
# Don't report duplicates
next if $key eq $lastkey;
$lastkey = $key;

my $value = $ENV{$key};
my $decoded = '';
if ( $key eq 'HTTP_COOKIE' && $value ) {
Expand Down

0 comments on commit c6bd9e6

Please sign in to comment.