mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-31 21:51:46 +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
|
// "or" may not be present depending on syntax
|
||||||
$pos_3 = stripos($line, 'die');
|
$pos_3 = stripos($line, 'die');
|
||||||
|
|
||||||
// Skip the line if "die" is not found
|
// Check for "exit"
|
||||||
if ($pos_3 === false)
|
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
|
// Search for the constant name
|
||||||
|
Loading…
Reference in New Issue
Block a user