diff --git a/data/web/inc/functions.dkim.inc.php b/data/web/inc/functions.dkim.inc.php index 72220ee1..46d66d31 100644 --- a/data/web/inc/functions.dkim.inc.php +++ b/data/web/inc/functions.dkim.inc.php @@ -34,7 +34,7 @@ function dkim($_action, $_data = null, $privkey = false) { ); continue; } - if (!ctype_alnum($dkim_selector)) { + if (!ctype_alnum(str_replace(['-', '_'], '', $dkim_selector))) { $_SESSION['return'][] = array( 'type' => 'danger', 'log' => array(__FUNCTION__, $_action, $_data, $privkey),