Skip to content

Commit c6159a2

Browse files
author
Demian
committed
Fixed regex pattern for dkim_selector #6459
Changed the regex pattern for dkim_selectors again. We now follow the DKIMCore technical specification as stated on the website: A selector is a string of no more than 63 lower-case alphanumeric characters (a-z or 0-9) followed by a period “.”, followed by another string of no more than 63 lower-case alphanumeric characters.
1 parent 7bd9904 commit c6159a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/mail/form/mail_domain.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@
130130
'default' => 'default',
131131
'value' => 'default',
132132
'width' => '20',
133-
'maxlength' => '63',
133+
'maxlength' => '126',
134134
'validators' => array ( 0 => array ( 'type' => 'REGEX',
135-
'regex' => '/^(?=.*[a-z])[a-z0-9]{1,63}$/',
135+
'regex' => '/^[a-z0-9]{1,63}(?:\.[a-z0-9]{1,63})?$/',
136136
'errmsg'=> 'dkim_selector_error'),
137137
),
138138
),

0 commit comments

Comments
 (0)