mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
👌 peer review
mostly coding convention, thanks @molkobain
This commit is contained in:
@@ -43,11 +43,11 @@ function TestConfig($sContents, $oP)
|
||||
{
|
||||
/// 1- first check if there is no malicious code
|
||||
$oiTopConfigValidator = new iTopConfigAstValidator();
|
||||
$oiTopConfigValidator->validate($sContents);
|
||||
$oiTopConfigValidator->Validate($sContents);
|
||||
|
||||
/// 2 - only after we are sure that there is no malicious cade, we can perform a syntax check!
|
||||
$oiTopConfigValidator = new iTopConfigSyntaxValidator();
|
||||
$oiTopConfigValidator->validate($sContents, true);
|
||||
$oiTopConfigValidator->Validate($sContents, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user