Skip to content

Commit b541ff3

Browse files
committed
modified regex so that only 0-9999 days are allowed as values
1 parent 85a012b commit b541ff3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/sites/form/web_vhost_domain.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,13 +922,13 @@
922922
'datatype' => 'INTEGER',
923923
'formtype' => 'TEXT',
924924
'validators' => array ( 0 => array ( 'type' => 'REGEX',
925-
'regex' => '/^([0-9]{1,5})$/',
925+
'regex' => '/^([0-9]{0,4})$/',
926926
'errmsg'=> 'log_retention_error_regex'),
927927
),
928928
'default' => '30',
929929
'value' => '',
930930
'width' => '4',
931-
'maxlength' => '6'
931+
'maxlength' => '4'
932932
)
933933
//#################################
934934
// ENDE Datatable fields

0 commit comments

Comments
 (0)