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:
parent
1f15a51f16
commit
b7c1d87817
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user