mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2025-01-03 22:57:21 +00:00
Merge pull request #188 from dryabov/patch-64
Fix skipping `*jamss.php` files/directories in the JAMSS rule
This commit is contained in:
commit
e290c73f48
@ -324,8 +324,7 @@ class JedcheckerRulesJamss extends JEDcheckerRule
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (in_array(pathinfo($path, PATHINFO_EXTENSION), $ext)
|
if (in_array(pathinfo($path, PATHINFO_EXTENSION), $ext)
|
||||||
&& filesize($path)/* skip empty ones */
|
&& filesize($path)/* skip empty ones */)
|
||||||
&& !stripos($path, 'jamss.php')/* skip this file */)
|
|
||||||
{
|
{
|
||||||
if ($malic_file_descr = array_search(pathinfo($path, PATHINFO_BASENAME), $jamssFileNames))
|
if ($malic_file_descr = array_search(pathinfo($path, PATHINFO_BASENAME), $jamssFileNames))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user