Skip to content

Commit

Permalink
Merge pull request #6182 from mailcow/fix/4518
Browse files Browse the repository at this point in the history
[Web] allow dots in dkim selectors
  • Loading branch information
FreddleSpl0it authored Nov 20, 2024
2 parents 6f4c2b3 + ba28223 commit 6af907c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/web/inc/functions.dkim.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function dkim($_action, $_data = null, $privkey = false) {
);
continue;
}
if (!ctype_alnum(str_replace(['-', '_'], '', $dkim_selector))) {
if (!ctype_alnum(str_replace(['-', '_', '.'], '', $dkim_selector))) {
$_SESSION['return'][] = array(
'type' => 'danger',
'log' => array(__FUNCTION__, $_action, $_data),
Expand Down Expand Up @@ -188,7 +188,7 @@ function dkim($_action, $_data = null, $privkey = false) {
return false;
}
}
if (!ctype_alnum($dkim_selector)) {
if (!ctype_alnum(str_replace(['-', '_', '.'], '', $dkim_selector))) {
$_SESSION['return'][] = array(
'type' => 'danger',
'log' => array(__FUNCTION__, $_action, $_data),
Expand Down

0 comments on commit 6af907c

Please sign in to comment.