Skip to content

Commit 38103c0

Browse files
author
Demian
committed
Fixed regex for dkim_selector to match only valid entires #6459
before the regex matched empty entries and entries starting with a number.
1 parent 39bf4b2 commit 38103c0

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-z0-9]{0,63}$/',
135+
'regex' => '/^[a-z][a-z0-9]{1,63}$/',
136136
'errmsg'=> 'dkim_selector_error'),
137137
),
138138
),

0 commit comments

Comments
 (0)