Commit 280c16b9 authored by Demian's avatar Demian
Browse files

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.
parent 38103c00
......@@ -132,7 +132,7 @@ $form["tabs"]['domain'] = array (
'width' => '20',
'maxlength' => '63',
'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[a-z][a-z0-9]{1,63}$/',
'regex' => '/^(?=.*[a-z])[a-z0-9]{1,63}$/',
'errmsg'=> 'dkim_selector_error'),
),
),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment