mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°2154: Fix security breach (scratch install usecase)
This commit is contained in:
@@ -37,7 +37,16 @@ class iTopConfigParser
|
||||
{
|
||||
$oParser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7);
|
||||
|
||||
$this->BrowseFile($oParser, $sConfig);
|
||||
$this->aVarsMap = array(
|
||||
'MySettings' => array(),
|
||||
'MyModuleSettings' => array(),
|
||||
'MyModules' => array(),
|
||||
);
|
||||
|
||||
if ($sConfig !== null)
|
||||
{
|
||||
$this->BrowseFile($oParser, $sConfig);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -77,12 +86,6 @@ class iTopConfigParser
|
||||
{
|
||||
$prettyPrinter = new Standard();
|
||||
|
||||
$this->aVarsMap = array(
|
||||
'MySettings' => array(),
|
||||
'MyModuleSettings' => array(),
|
||||
'MyModules' => array(),
|
||||
);
|
||||
|
||||
try
|
||||
{
|
||||
$aNodes = $oParser->parse($sConfig);
|
||||
|
||||
Reference in New Issue
Block a user