projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix syntax error with corrupt data
[ikiwiki.git]
/
IkiWiki
/
Setup
/
Standard.pm
diff --git
a/IkiWiki/Setup/Standard.pm
b/IkiWiki/Setup/Standard.pm
index 0e640f8ac85b4b1ae9b21df12b9a574090785f94..dd613fd035d3fc57267497e9840deecad59bebc0 100644
(file)
--- 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;
}