Skip to content
Snippets Groups Projects
Commit 38103c00 authored by Demian's avatar Demian
Browse files

Fixed regex for dkim_selector to match only valid entires #6459

before the regex matched empty entries and entries starting with a number.
parent 39bf4b24
No related branches found
No related tags found
1 merge request!1692Fixed regex for dkim_selector to match only valid entires #6459
......@@ -132,7 +132,7 @@ $form["tabs"]['domain'] = array (
'width' => '20',
'maxlength' => '63',
'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[a-z0-9]{0,63}$/',
'regex' => '/^[a-z][a-z0-9]{1,63}$/',
'errmsg'=> 'dkim_selector_error'),
),
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment