From: Joey Hess Date: Sun, 3 Aug 2008 03:14:23 +0000 (-0400) Subject: fix syntax error with corrupt data X-Git-Tag: 2.60~115 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6babf662b37f937048920127dfd0418482714f6;p=ikiwiki.git fix syntax error with corrupt data Just because it's supposed to be an integer or boolean doesn't mean the vlaue really is.. --- diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index 0e640f8ac..dd613fd03 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -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; }