Plugin Directory

Changeset 3486674


Ignore:
Timestamp:
03/19/2026 04:25:14 PM (10 days ago)
Author:
freelancebo
Message:

Fix malware scanner false positives: change regex flag /is to /im to prevent cross-line matching on legitimate plugin files (e.g. Elementor)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freelancebo-sentra-control/trunk/includes/modules/class-sentra-malware-scanner.php

    r3485775 r3486674  
    156156                // Check signature patterns
    157157                foreach ($this->signatures as $pattern => $info) {
    158                     if (@preg_match('/' . $pattern . '/is', $content)) {
     158                    if (@preg_match('/' . $pattern . '/im', $content)) {
    159159                        $findings[] = [
    160160                            'file' => $rel_path,
Note: See TracChangeset for help on using the changeset viewer.