Skip to content

Commit ac5439a

Browse files
committed
Loosen regex to allow just a name prefix
1 parent f72a4ba commit ac5439a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/admin/form/server_config.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@
15441544
'formtype' => 'TEXT',
15451545
'default' => '',
15461546
'validators' => array( 0 => array ( 'type' => 'REGEX',
1547-
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
1547+
'regex' => '/^[a-zA-Z0-9\.\-\_\/]{0,128}$/',
15481548
'errmsg'=> 'bind_zonefiles_masterprefix_error_regex'),
15491549
),
15501550
'value' => '',
@@ -1556,7 +1556,7 @@
15561556
'formtype' => 'TEXT',
15571557
'default' => '',
15581558
'validators' => array( 0 => array ( 'type' => 'REGEX',
1559-
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{1,128}$/',
1559+
'regex' => '/^[a-zA-Z0-9\.\-\_\/]{0,128}$/',
15601560
'errmsg'=> 'bind_zonefiles_slaveprefix_error_regex'),
15611561
),
15621562
'value' => '',

0 commit comments

Comments
 (0)