Skip to content

Commit

Permalink
[Web] allow dots in dkim selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddleSpl0it committed Nov 20, 2024
1 parent 8e9a936 commit ba28223
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 ba28223

Please sign in to comment.