HOR-1400 "Remove code scanner review for ProcessMaker plugins" SOLVED
Issue:
Remove code scanner review for ProcessMaker plugins
Cause:
Nuevo requerimiento de validacion
Solution:
Se a incluido la validacion para los "Enterprise Edition Plugin"; donde se evita que el "Code Scanner" revise estos plugins
This commit is contained in:
@@ -96,6 +96,13 @@ try {
|
||||
}
|
||||
|
||||
$res = $tar->extract($path);
|
||||
|
||||
//Verify if not is Enterprise Plugin
|
||||
if (!$oPluginRegistry->isEnterprisePlugin($sClassName, $path)) {
|
||||
throw new Exception(G::LoadTranslation('ID_EEPLUGIN_IMPORT_PLUGIN_NOT_IS_ENTERPRISE', [$filename]));
|
||||
}
|
||||
|
||||
//Get contents of plugin file
|
||||
$sContent = file_get_contents($path . $pluginFile);
|
||||
$sContent = str_ireplace($sAux, $sAux . '_', $sContent);
|
||||
$sContent = str_ireplace('PATH_PLUGINS', "'".$path."'", $sContent);
|
||||
|
||||
Reference in New Issue
Block a user