fix: Fix undefined variable error
This commit is contained in:
parent
2a6edd119f
commit
aebd3ba0f9
@ -94,7 +94,13 @@ foreach ($lines as $line_num => $line) {
|
|||||||
$line = trim($line, "\t\n\r"); # chomp would be nice...
|
$line = trim($line, "\t\n\r"); # chomp would be nice...
|
||||||
$matches = [];
|
$matches = [];
|
||||||
if (!isset($filetype)) {
|
if (!isset($filetype)) {
|
||||||
if (preg_match('/Starting|\-oN/', $line)) {
|
if (preg_match('/\.nmap/', $cmd['f'])) {
|
||||||
|
$filetype = "text";
|
||||||
|
}
|
||||||
|
elseif (preg_match('/\.gnmap/', $cmd['f'])) {
|
||||||
|
$filetype = "grep";
|
||||||
|
}
|
||||||
|
elseif (preg_match('/Starting|\-oN/', $line)) {
|
||||||
$filetype = "text";
|
$filetype = "text";
|
||||||
}
|
}
|
||||||
elseif (preg_match('/\-oG/', $line)) {
|
elseif (preg_match('/\-oG/', $line)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user