PM-473 "Analisis de los resultados de escaneo de las..." SOLVED
Issue:
Despliegue de mensajes al ejecutar "./gulliver check-plugin-disabled-code"
----> "grep: write error: Broken pipe"
Cause:
Este mensaje se ocasiona al llamar al metodo "getPluginVersion" de ciertos
plugins
Solution:
Se quita la instanciacion del objeto, y se crea nuevo script para la
determinacion de la clase padre de un plugin
This commit is contained in:
@@ -188,14 +188,16 @@ class CodeScanner
|
||||
if ($file != "" && $file != "." && $file != "..") {
|
||||
$f = $path . PATH_SEP . $file;
|
||||
|
||||
$arrayFoundCode = array_merge($arrayFoundCode, $this->checkDisabledCode((is_dir($f))? "PATH" : "FILE", $f));
|
||||
if (is_dir($f) || (is_file($f) && preg_match("/\.php$/", $f))) {
|
||||
$arrayFoundCode = array_merge($arrayFoundCode, $this->checkDisabledCode((is_dir($f))? "PATH" : "FILE", $f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
closedir($dirh);
|
||||
}
|
||||
} else {
|
||||
if (preg_match("/\.php$/", $path)) {
|
||||
if (is_file($path) && preg_match("/\.php$/", $path)) {
|
||||
$source = file_get_contents($path);
|
||||
|
||||
$arrayAux = $this->checkDisabledCodeInSource($source);
|
||||
|
||||
Reference in New Issue
Block a user