We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a3cd23 commit e14a827Copy full SHA for e14a827
interface/lib/classes/getconf.inc.php
@@ -59,7 +59,9 @@ public function get_security_config($section = '') {
59
global $app;
60
61
$app->uses('ini_parser');
62
- $security_config = $app->ini_parser->parse_ini_string(file_get_contents('/usr/local/ispconfig/security/security_settings.ini'));
+ $security_config_path = '/usr/local/ispconfig/security/security_settings.ini';
63
+ if(!is_file($security_config_path)) $security_config_path = realpath(ISPC_ROOT_PATH.'/../security/security_settings.ini');
64
+ $security_config = $app->ini_parser->parse_ini_string(file_get_contents($security_config_path));
65
66
return ($section == '') ? $security_config : $security_config[$section];
67
}
0 commit comments