mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-02 03:38:23 +02:00
[Web] allow dots in dkim selectors
This commit is contained in:
parent
8e9a9364a8
commit
ba282233ea
@ -26,7 +26,7 @@ function dkim($_action, $_data = null, $privkey = false) {
|
|||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!ctype_alnum(str_replace(['-', '_'], '', $dkim_selector))) {
|
if (!ctype_alnum(str_replace(['-', '_', '.'], '', $dkim_selector))) {
|
||||||
$_SESSION['return'][] = array(
|
$_SESSION['return'][] = array(
|
||||||
'type' => 'danger',
|
'type' => 'danger',
|
||||||
'log' => array(__FUNCTION__, $_action, $_data),
|
'log' => array(__FUNCTION__, $_action, $_data),
|
||||||
@ -188,7 +188,7 @@ function dkim($_action, $_data = null, $privkey = false) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!ctype_alnum($dkim_selector)) {
|
if (!ctype_alnum(str_replace(['-', '_', '.'], '', $dkim_selector))) {
|
||||||
$_SESSION['return'][] = array(
|
$_SESSION['return'][] = array(
|
||||||
'type' => 'danger',
|
'type' => 'danger',
|
||||||
'log' => array(__FUNCTION__, $_action, $_data),
|
'log' => array(__FUNCTION__, $_action, $_data),
|
||||||
|
Loading…
Reference in New Issue
Block a user