Plugin Directory

Changeset 3167087


Ignore:
Timestamp:
10/11/2024 10:43:54 AM (18 months ago)
Author:
gdatavaas
Message:

release v1.0.0

Location:
gdata-antivirus
Files:
4 added
1 deleted
5 edited
12 copied

Legend:

Unmodified
Added
Removed
  • gdata-antivirus/tags/1.0.0/Infrastructure/FileSystem/FileSystemBase.php

    r3166981 r3167087  
    1515        $stream = fopen('php://temp', 'r+');
    1616        fwrite($stream, $content);
    17         rewind($stream);
    1817        return tryToCreateReadableStreamFromResource($stream);
    1918    }
  • gdata-antivirus/tags/1.0.0/Readme.txt

    r3166993 r3167087  
    4545Commercial entities are encouraged to contact us via vaas@gdata.de for more details on partnership opportunities.
    4646
     47== Screenshots == 
     481. Enter your credentials.
     492. Shows the image upload scan.
     503. Full OnDemand Scan.
     514. Scan on Upload.
     52
    4753== Changelog ==
    4854
  • gdata-antivirus/tags/1.0.0/Vaas/ScanClient.php

    r3166981 r3167087  
    5656            $post_scan_enabled = (bool) \get_option('gdatacyberdefenseag_antivirus_options_on_demand_scan_post_scan_enabled', true);
    5757            if ($post_scan_enabled === true) {
    58                 \add_filter('wp_insert_post_data', array( $this, 'scan_post' ));
     58                \add_filter('wp_insert_post_data', array( $this, 'scan_post' ), 10, 3);
    5959            }
    6060        }
     
    160160            $is_plugin_uplad = false;
    161161
    162             $action =  \sanitize_key($_GET['action'] ?? $_POST['action'] ?? '');
    163             if (isset($_POST['_wpnonce'])) {
    164                 $nonce = \sanitize_key($_POST['nonce'] ?? $_POST['_wpnonce']);
    165             } else {
    166                 $nonce = \sanitize_key($_GET['nonce'] ?? '');
    167             }
     162            $action =  sanitize_key($_REQUEST['action'] ?? '');
     163            $nonce = wp_unslash($_REQUEST['_wpnonce'] ?? $_REQUEST['nonce']);
    168164            if ($action === 'upload-plugin') {
    169165                if (wp_verify_nonce($nonce, $action) === false) {
  • gdata-antivirus/trunk/Infrastructure/FileSystem/FileSystemBase.php

    r3166981 r3167087  
    1515        $stream = fopen('php://temp', 'r+');
    1616        fwrite($stream, $content);
    17         rewind($stream);
    1817        return tryToCreateReadableStreamFromResource($stream);
    1918    }
  • gdata-antivirus/trunk/Readme.txt

    r3166993 r3167087  
    4545Commercial entities are encouraged to contact us via vaas@gdata.de for more details on partnership opportunities.
    4646
     47== Screenshots == 
     481. Enter your credentials.
     492. Shows the image upload scan.
     503. Full OnDemand Scan.
     514. Scan on Upload.
     52
    4753== Changelog ==
    4854
  • gdata-antivirus/trunk/Vaas/ScanClient.php

    r3166981 r3167087  
    5656            $post_scan_enabled = (bool) \get_option('gdatacyberdefenseag_antivirus_options_on_demand_scan_post_scan_enabled', true);
    5757            if ($post_scan_enabled === true) {
    58                 \add_filter('wp_insert_post_data', array( $this, 'scan_post' ));
     58                \add_filter('wp_insert_post_data', array( $this, 'scan_post' ), 10, 3);
    5959            }
    6060        }
     
    160160            $is_plugin_uplad = false;
    161161
    162             $action =  \sanitize_key($_GET['action'] ?? $_POST['action'] ?? '');
    163             if (isset($_POST['_wpnonce'])) {
    164                 $nonce = \sanitize_key($_POST['nonce'] ?? $_POST['_wpnonce']);
    165             } else {
    166                 $nonce = \sanitize_key($_GET['nonce'] ?? '');
    167             }
     162            $action =  sanitize_key($_REQUEST['action'] ?? '');
     163            $nonce = wp_unslash($_REQUEST['_wpnonce'] ?? $_REQUEST['nonce']);
    168164            if ($action === 'upload-plugin') {
    169165                if (wp_verify_nonce($nonce, $action) === false) {
Note: See TracChangeset for help on using the changeset viewer.