33
2
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:
eaxs 2012-06-25 20:54:01 +02:00
parent 9c517bc88a
commit 003572ab25

View File

@ -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