Commit f5bb3553 authored by Till Brehm's avatar Till Brehm

Improved vhost path filter.

parent 33854f29
......@@ -349,6 +349,9 @@ if($vhostdomain_type == 'domain') {
'regex' => '@^((?!(.*\.\.)|(.*\./)|(.*//))[^/][\w/_\.\-]{1,100})?$@',
'errmsg'=> 'web_folder_error_regex'),
),
'filters' => array( 0 => array( 'event' => 'SAVE',
'type' => 'TRIM'),
),
'formtype' => 'TEXT',
'default' => '',
'value' => '',
......@@ -368,6 +371,9 @@ if($vhostdomain_type == 'domain') {
'regex' => '@^((?!(.*\.\.)|(.*\./)|(.*//))[^/][\w/_\.\-]{1,100})?$@',
'errmsg'=> 'web_folder_error_regex'),
),
'filters' => array( 0 => array( 'event' => 'SAVE',
'type' => 'TRIM'),
),
'formtype' => 'TEXT',
'default' => '',
'value' => '',
......
Markdown is supported
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