Skip to content

Commit 280c16b

Browse files
author
Demian
committed
Fixed regex to match the dkim_slector RFC compliant #6459
The dkim_select can start with a number, but has to contain atleast 1 letter and has to be between 1 and 63 characters long.
1 parent 38103c0 commit 280c16b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
'width' => '20',
133133
'maxlength' => '63',
134134
'validators' => array ( 0 => array ( 'type' => 'REGEX',
135-
'regex' => '/^[a-z][a-z0-9]{1,63}$/',
135+
'regex' => '/^(?=.*[a-z])[a-z0-9]{1,63}$/',
136136
'errmsg'=> 'dkim_selector_error'),
137137
),
138138
),

0 commit comments

Comments
 (0)