From b7c1d87817e84136aa24babb4a06e901aede5d22 Mon Sep 17 00:00:00 2001 From: SharkyKZ Date: Thu, 3 Sep 2020 11:41:52 +0300 Subject: [PATCH] Support exit in entry point check --- .../com_jedchecker/libraries/rules/jexec.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_jedchecker/libraries/rules/jexec.php b/administrator/components/com_jedchecker/libraries/rules/jexec.php index 18a6019..06125a6 100644 --- a/administrator/components/com_jedchecker/libraries/rules/jexec.php +++ b/administrator/components/com_jedchecker/libraries/rules/jexec.php @@ -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