fix syntax error with corrupt data

Just because it's supposed to be an integer or boolean doesn't mean the
vlaue really is..
master
Joey Hess 2008-08-02 23:14:23 -04:00
parent 94c59d3254
commit f6babf662b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ sub dumpline ($$$$) { #{{{
local $Data::Dumper::Quotekeys=0;
my $dumpedvalue;
if ($type eq 'boolean' || $type eq 'integer') {
if (($type eq 'boolean' || $type eq 'integer') && $value=~/^[0-9]+$/) {
# avoid quotes
$dumpedvalue=$value;
}