allow cidr (forward slash) in spf settings-regex; fixes #1295

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2024-12-03 14:35:45 +01:00
parent 5bb450bccc
commit 60f51fd746

View File

@@ -129,7 +129,7 @@ return [
'settinggroup' => 'spf', 'settinggroup' => 'spf',
'varname' => 'spf_entry', 'varname' => 'spf_entry',
'type' => 'text', 'type' => 'text',
'string_regexp' => '/^v=spf[a-z0-9:~?\s.-]+$/i', 'string_regexp' => '/^v=spf[a-z0-9:~?\s.-\/]+$/i',
'default' => 'v=spf1 a mx -all', 'default' => 'v=spf1 a mx -all',
'save_method' => 'storeSettingField' 'save_method' => 'storeSettingField'
], ],