From 003572ab251a90d38e57f91b4a6606b315845462 Mon Sep 17 00:00:00 2001 From: eaxs Date: Mon, 25 Jun 2012 20:54:01 +0200 Subject: [PATCH] JEXEC check now allows JPATH_PLATFORM as alternative --- .../components/com_jedchecker/libraries/rules/jexec.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/administrator/components/com_jedchecker/libraries/rules/jexec.php b/source/administrator/components/com_jedchecker/libraries/rules/jexec.php index 70be4d4..b2b8311 100644 --- a/source/administrator/components/com_jedchecker/libraries/rules/jexec.php +++ b/source/administrator/components/com_jedchecker/libraries/rules/jexec.php @@ -73,7 +73,13 @@ class jedcheckerRulesJexec $pos_2 = strpos($line, '_JEXEC'); // Skip the line if _JEXEC is not found - if($pos_2 === false) continue; + if($pos_2 === false) { + // Alternatively search for JPATH_PLATFORM + $pos_2 = strpos($line, 'JPATH_PLATFORM'); + + // Nothing found, skip the line + if($pos_2 === false) continue; + } // Search for "defined" and "die". "or" may not be present // depending on syntax