- Issue created by @prudloff
- First commit to issue fork.
This is a followup to
🐛
Wrong config type
Active
.
The solution implemented does not work correctly when some settings are empty.
It generates this config:
ua_whitelist_patterns:
- ''
ip_whitelist:
- ''
This ends up whitelisting everything.
I think this happens because when submitting an empty value explode(PHP_EOL, '')
returns an array containing an empty string.
Maybe explodeConfigValue() could use array_filter() to remove empty values.
Active
1.0
Code