aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-02 23:14:23 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-02 23:14:23 -0400
commitf6babf662b37f937048920127dfd0418482714f6 (patch)
tree266479e3b695c5d8995d1da89b86a91f3d926ba5 /IkiWiki
parent94c59d3254dd97be541cd8ff03ccf3c29b5a55b8 (diff)
downloadikiwiki-f6babf662b37f937048920127dfd0418482714f6.tar
ikiwiki-f6babf662b37f937048920127dfd0418482714f6.tar.gz
fix syntax error with corrupt data
Just because it's supposed to be an integer or boolean doesn't mean the vlaue really is..
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Setup/Standard.pm2
1 files changed, 1 insertions, 1 deletions
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;
}