Skip to content

Commit

Permalink
remove verify nonce für plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
doxthree committed Oct 18, 2024
1 parent 504922a commit a61d6bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Vaas/ScanClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ public function scan_single_upload( $file ) {
$action = sanitize_key($_REQUEST['action'] ?? '');
$nonce = wp_unslash($_REQUEST['_wpnonce'] ?? $_REQUEST['nonce']);
if ($action === 'upload-plugin') {
if (wp_verify_nonce($nonce, $action) === false) {
return $file;
}
// if (wp_verify_nonce($nonce, $action) === false) {
// return $file;
// }
$is_plugin_uplad = true;
if ($plugin_upload_scan_enabled === false) {
return $file;
Expand Down

0 comments on commit a61d6bb

Please sign in to comment.