Project

General

Profile

« Previous | Next » 

Revision ddad10fd

Added by Hamish Coleman over 16 years ago

  • ID ddad10fd5a05d8c4de6f6d466fc553160258452a

Encode the debug dump for safer and saner output

View differences:

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