From 60f51fd746bc1f4ea2169c844220b8fe77a9e791 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Tue, 3 Dec 2024 14:35:45 +0100 Subject: [PATCH] allow cidr (forward slash) in spf settings-regex; fixes #1295 Signed-off-by: Michael Kaufmann --- actions/admin/settings/180.antispam.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/admin/settings/180.antispam.php b/actions/admin/settings/180.antispam.php index b599a443a..6a3c67b26 100644 --- a/actions/admin/settings/180.antispam.php +++ b/actions/admin/settings/180.antispam.php @@ -129,7 +129,7 @@ 'settinggroup' => 'spf', 'varname' => 'spf_entry', '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', 'save_method' => 'storeSettingField' ],