33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-29 04:42:36 +00:00

Support exit in entry point check

This commit is contained in:
SharkyKZ 2020-09-03 11:41:52 +03:00 committed by GitHub
parent 1f15a51f16
commit b7c1d87817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,10 +112,16 @@ class JedcheckerRulesJexec extends JEDcheckerRule
// "or" may not be present depending on syntax
$pos_3 = stripos($line, 'die');
// Skip the line if "die" is not found
// Check for "exit"
if ($pos_3 === false)
{
continue;
$pos_3 = stripos($line, 'exit');
// Skip the line if "die" or "exit" is not found
if ($pos_3 === false)
{
continue;
}
}
// Search for the constant name