Solved security issue with system logfiles field

This commit is contained in:
Jose Gonzalez 2020-06-09 12:51:17 +02:00
parent cbca70da73
commit 251e6669b9
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ function config_update_config()
$error_update[] = __('Command Snapshot'); $error_update[] = __('Command Snapshot');
} }
if (!config_update_value('server_log_dir', get_parameter('server_log_dir'))) { if (!config_update_value('server_log_dir', io_safe_input(strip_tags(io_safe_output(get_parameter('server_log_dir')))))) {
$error_update[] = __('Server logs directory'); $error_update[] = __('Server logs directory');
} }