From 003572ab251a90d38e57f91b4a6606b315845462 Mon Sep 17 00:00:00 2001 From: eaxs Date: Mon, 25 Jun 2012 20:54:01 +0200 Subject: [PATCH 1/3] 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 From 02fdc3ed4c568339adf5bfbaee531d37de01d2dd Mon Sep 17 00:00:00 2001 From: eaxs Date: Mon, 25 Jun 2012 20:56:58 +0200 Subject: [PATCH 2/3] Changed projectfork TLD from ".com" to ".net" --- .../components/com_jedchecker/views/uploads/tmpl/default.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/administrator/components/com_jedchecker/views/uploads/tmpl/default.php b/source/administrator/components/com_jedchecker/views/uploads/tmpl/default.php index e79bd1d..8b998ce 100644 --- a/source/administrator/components/com_jedchecker/views/uploads/tmpl/default.php +++ b/source/administrator/components/com_jedchecker/views/uploads/tmpl/default.php @@ -60,7 +60,7 @@ JHtml::script('media/com_jedchecker/js/police.js');

From c43c77b9f40b503744219be41f616f6d6ecf3d1e Mon Sep 17 00:00:00 2001 From: eaxs Date: Mon, 25 Jun 2012 21:16:11 +0200 Subject: [PATCH 3/3] Results from previous check are now cleared when checking again --- source/media/com_jedchecker/js/police.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/media/com_jedchecker/js/police.js b/source/media/com_jedchecker/js/police.js index b2a1410..b3fd6f8 100644 --- a/source/media/com_jedchecker/js/police.js +++ b/source/media/com_jedchecker/js/police.js @@ -13,6 +13,12 @@ var police = new Class({ var self = this; this.setOptions(options); + // Clear result from any previous check + if(document.id('police-check-result').getChildren('div').length > 0) { + document.id('police-check-result').empty(); + } + + this.options.rules.each(function(rule){ self.check(rule); });