Changeset 3167087
- Timestamp:
- 10/11/2024 10:43:54 AM (18 months ago)
- Location:
- gdata-antivirus
- Files:
-
- 4 added
- 1 deleted
- 5 edited
- 12 copied
-
assets/screenshot-1.png (added)
-
assets/screenshot-2.png (added)
-
assets/screenshot-3.png (added)
-
assets/screenshot-4.png (added)
-
tags/1.0.0 (copied) (copied from gdata-antivirus/trunk)
-
tags/1.0.0/GdataAntivirusPlugin.php (copied) (copied from gdata-antivirus/trunk/GdataAntivirusPlugin.php)
-
tags/1.0.0/Infrastructure (copied) (copied from gdata-antivirus/trunk/Infrastructure)
-
tags/1.0.0/Infrastructure/FileSystem/FileSystemBase.php (modified) (1 diff)
-
tags/1.0.0/LICENSE (copied) (copied from gdata-antivirus/trunk/LICENSE)
-
tags/1.0.0/PluginPage (copied) (copied from gdata-antivirus/trunk/PluginPage)
-
tags/1.0.0/Readme.txt (copied) (copied from gdata-antivirus/trunk/Readme.txt) (1 diff)
-
tags/1.0.0/Vaas (copied) (copied from gdata-antivirus/trunk/Vaas)
-
tags/1.0.0/Vaas/ScanClient.php (modified) (2 diffs)
-
tags/1.0.0/composer.json (copied) (copied from gdata-antivirus/trunk/composer.json)
-
tags/1.0.0/composer.lock (copied) (copied from gdata-antivirus/trunk/composer.lock)
-
tags/1.0.0/gdata-antivirus.php (copied) (copied from gdata-antivirus/trunk/gdata-antivirus.php)
-
tags/1.0.0/languages (copied) (copied from gdata-antivirus/trunk/languages)
-
tags/1.0.0/vendor (copied) (copied from gdata-antivirus/trunk/vendor)
-
trunk/Infrastructure/FileSystem/FileSystemBase.php (modified) (1 diff)
-
trunk/Readme.md (deleted)
-
trunk/Readme.txt (modified) (1 diff)
-
trunk/Vaas/ScanClient.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gdata-antivirus/tags/1.0.0/Infrastructure/FileSystem/FileSystemBase.php
r3166981 r3167087 15 15 $stream = fopen('php://temp', 'r+'); 16 16 fwrite($stream, $content); 17 rewind($stream);18 17 return tryToCreateReadableStreamFromResource($stream); 19 18 } -
gdata-antivirus/tags/1.0.0/Readme.txt
r3166993 r3167087 45 45 Commercial entities are encouraged to contact us via vaas@gdata.de for more details on partnership opportunities. 46 46 47 == Screenshots == 48 1. Enter your credentials. 49 2. Shows the image upload scan. 50 3. Full OnDemand Scan. 51 4. Scan on Upload. 52 47 53 == Changelog == 48 54 -
gdata-antivirus/tags/1.0.0/Vaas/ScanClient.php
r3166981 r3167087 56 56 $post_scan_enabled = (bool) \get_option('gdatacyberdefenseag_antivirus_options_on_demand_scan_post_scan_enabled', true); 57 57 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); 59 59 } 60 60 } … … 160 160 $is_plugin_uplad = false; 161 161 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']); 168 164 if ($action === 'upload-plugin') { 169 165 if (wp_verify_nonce($nonce, $action) === false) { -
gdata-antivirus/trunk/Infrastructure/FileSystem/FileSystemBase.php
r3166981 r3167087 15 15 $stream = fopen('php://temp', 'r+'); 16 16 fwrite($stream, $content); 17 rewind($stream);18 17 return tryToCreateReadableStreamFromResource($stream); 19 18 } -
gdata-antivirus/trunk/Readme.txt
r3166993 r3167087 45 45 Commercial entities are encouraged to contact us via vaas@gdata.de for more details on partnership opportunities. 46 46 47 == Screenshots == 48 1. Enter your credentials. 49 2. Shows the image upload scan. 50 3. Full OnDemand Scan. 51 4. Scan on Upload. 52 47 53 == Changelog == 48 54 -
gdata-antivirus/trunk/Vaas/ScanClient.php
r3166981 r3167087 56 56 $post_scan_enabled = (bool) \get_option('gdatacyberdefenseag_antivirus_options_on_demand_scan_post_scan_enabled', true); 57 57 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); 59 59 } 60 60 } … … 160 160 $is_plugin_uplad = false; 161 161 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']); 168 164 if ($action === 'upload-plugin') { 169 165 if (wp_verify_nonce($nonce, $action) === false) {
Note: See TracChangeset
for help on using the changeset viewer.