mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-25 03:36:00 +00:00
JEXEC check now allows JPATH_PLATFORM as alternative
This commit is contained in:
parent
9c517bc88a
commit
003572ab25
@ -73,7 +73,13 @@ class jedcheckerRulesJexec
|
||||
$pos_2 = strpos($line, '_JEXEC');
|
||||
|
||||
// Skip the line if _JEXEC is not found
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user