Revision ddad10fd
Added by Hamish Coleman almost 17 years ago
- ID ddad10fd5a05d8c4de6f6d466fc553160258452a
mrtg.cgi | ||
---|---|---|
use CGI::Carp qw(fatalsToBrowser);
|
||
use Sys::Hostname;
|
||
|
||
use HTML::Entities();
|
||
|
||
# List of config files to search for
|
||
my @config_files = (
|
||
'/etc/mrtg.cfg',
|
||
... | ... | |
if (param('debug')) {
|
||
#print "<pre>\n", "$warnings", "</pre>\n";
|
||
print "<pre>\n";
|
||
print Dumper(\$db),"\n";
|
||
print HTML::Entities::encode(Dumper(\$db)),"\n";
|
||
print "</pre>";
|
||
}
|
||
|
Also available in: Unified diff
Encode the debug dump for safer and saner output