Merge pull request #188 from dryabov/patch-64

Fix skipping `*jamss.php` files/directories in the JAMSS rule
This commit is contained in:
Denis Ryabov 2022-10-10 19:53:47 +09:00 committed by GitHub
commit e290c73f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -324,8 +324,7 @@ class JedcheckerRulesJamss extends JEDcheckerRule
*/
if (in_array(pathinfo($path, PATHINFO_EXTENSION), $ext)
&& filesize($path)/* skip empty ones */
&& !stripos($path, 'jamss.php')/* skip this file */)
&& filesize($path)/* skip empty ones */)
{
if ($malic_file_descr = array_search(pathinfo($path, PATHINFO_BASENAME), $jamssFileNames))
{