sub write_reformat {
...
$string .= $self->$method($name||'', $_->value||'');
...
makes directives that have a value of '0' break since the ||'' makes
it's value '' instead of '0' now.
For example:
MaxRequestPerChild 0
will become
MaxRequestPerChild
and break the configuration.
This will fix it:
- $string .= $self->$method($name||'', $_->value||'');
+ my $value = defined $_->value ? : $_->value : '';
+ $string .= $self->$method($name||'', $value);
Hopefully that can be implemented very very soon :)
PS - probably need to check for other places that sort of logic will
make an invalid config...
Thanks!