From f6babf662b37f937048920127dfd0418482714f6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 2 Aug 2008 23:14:23 -0400 Subject: fix syntax error with corrupt data Just because it's supposed to be an integer or boolean doesn't mean the vlaue really is.. --- IkiWiki/Setup/Standard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Setup') 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; } -- cgit v1.2.3