From ae524590c7b48be4dd156bcafafb885b7e9275d5 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 16 Nov 2021 20:23:07 +0300 Subject: [PATCH 1/2] mitigate Encoding ruleset to the warning level --- .../components/com_jedchecker/libraries/rules/encoding.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_jedchecker/libraries/rules/encoding.php b/administrator/components/com_jedchecker/libraries/rules/encoding.php index 2d071d7..5ac1d09 100644 --- a/administrator/components/com_jedchecker/libraries/rules/encoding.php +++ b/administrator/components/com_jedchecker/libraries/rules/encoding.php @@ -120,7 +120,7 @@ class JedcheckerRulesEncoding extends JEDcheckerRule if (preg_match($this->encodingsRegex, $line)) { $found = true; - $this->report->addError($file, JText::_('COM_JEDCHECKER_ERROR_ENCODING'), $i + 1, $line); + $this->report->addWarning($file, JText::_('COM_JEDCHECKER_ERROR_ENCODING'), $i + 1, $line); } } From 5b6a43e2c2f1962f05f0b0529a84f08501b6d474 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 16 Nov 2021 20:23:41 +0300 Subject: [PATCH 2/2] don't warn on base64-encoded data-uri --- .../components/com_jedchecker/libraries/rules/encoding.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_jedchecker/libraries/rules/encoding.ini b/administrator/components/com_jedchecker/libraries/rules/encoding.ini index efb2f19..ab46109 100644 --- a/administrator/components/com_jedchecker/libraries/rules/encoding.ini +++ b/administrator/components/com_jedchecker/libraries/rules/encoding.ini @@ -7,4 +7,4 @@ ; @license GNU General Public License version 2 or later; see LICENSE.txt ; The valid constants to search for -encodings ="base64,base64_decode,base64_encode,zlib_decode,zlib_encode" +encodings ="base64_decode,base64_encode,zlib_decode,zlib_encode"