diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index ee34733106..bba18db580 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -53,8 +53,7 @@ function config_update_value ($token, $value) { } if ($token == 'ad_adv_perms') { - $value = str_replace(array("\r\n", "\r", "\n"), ";", - io_safe_output($value)); + $value = io_safe_output($value); } if ($token == 'default_assign_tags') { @@ -1168,14 +1167,14 @@ function config_process_config () { config_update_value ( 'ad_domain', ''); } - if (!isset ($config["ad_adv_perms"])) { + if (!isset ($config['ad_adv_perms'])) { config_update_value ('ad_adv_perms', ''); } else{ $temp_ad_adv_perms = array(); if (isset($config['ad_adv_perms'])) { if (!empty($config['ad_adv_perms'])) { - $temp_ad_adv_perms = explode(';', io_safe_output($config['ad_adv_perms'])); + $temp_ad_adv_perms = $config['ad_adv_perms']; } } $config['ad_adv_perms'] = $temp_ad_adv_perms;