add missing validator-parameters for setting-formfields
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -27,6 +27,7 @@ return array(
|
|||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'documentroot_prefix',
|
'varname' => 'documentroot_prefix',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
'string_type' => 'dir',
|
||||||
'default' => '/var/customers/webs/',
|
'default' => '/var/customers/webs/',
|
||||||
'save_method' => 'storeSettingField',
|
'save_method' => 'storeSettingField',
|
||||||
'plausibility_check_method' => 'checkPathConflicts'
|
'plausibility_check_method' => 'checkPathConflicts'
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ return array(
|
|||||||
'settinggroup' => 'perl',
|
'settinggroup' => 'perl',
|
||||||
'varname' => 'suexecpath',
|
'varname' => 'suexecpath',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
'string_type' => 'dir',
|
||||||
'default' => '/var/www/cgi-bin/',
|
'default' => '/var/www/cgi-bin/',
|
||||||
'save_method' => 'storeSettingField',
|
'save_method' => 'storeSettingField',
|
||||||
'websrv_avail' => array('apache2')
|
'websrv_avail' => array('apache2')
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ return array(
|
|||||||
'settinggroup' => 'dkim',
|
'settinggroup' => 'dkim',
|
||||||
'varname' => 'dkim_prefix',
|
'varname' => 'dkim_prefix',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
|
'string_type' => 'dir',
|
||||||
'default' => '/etc/postfix/dkim/',
|
'default' => '/etc/postfix/dkim/',
|
||||||
'save_method' => 'storeSettingField',
|
'save_method' => 'storeSettingField',
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -38,5 +38,6 @@ function makeSecurePath($path)
|
|||||||
''
|
''
|
||||||
);
|
);
|
||||||
$path = preg_replace($search, $replace, $path);
|
$path = preg_replace($search, $replace, $path);
|
||||||
|
$path = str_replace(" ", "\ ", $path);
|
||||||
return $path;
|
return $path;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ function storeDefaultIndex($loginname = null, $destination = null, $logger = nul
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$destination = makeCorrectDir($destination);
|
||||||
if ($logger !== null) {
|
if ($logger !== null) {
|
||||||
$logger->logAction(CRON_ACTION, LOG_NOTICE, 'Running: cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($destination));
|
$logger->logAction(CRON_ACTION, LOG_NOTICE, 'Running: cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($destination));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user