Plugin Directory

Changeset 3298706


Ignore:
Timestamp:
05/22/2025 11:34:34 AM (10 months ago)
Author:
bpostshippingplugins
Message:

Add the checked version of the shipping class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bpost-shipping-platform/trunk/includes/admin/class-Bpost-shipping.php

    r3298698 r3298706  
    433433
    434434        // Verify nonce first
    435         if(!isset($_POST['nonce']) || !wp_verify_nonce($_POST['nonce'], 'label_print_nonce') ){
     435        if(!isset($_POST['nonce']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['nonce'])), 'label_print_nonce') ){
    436436            wp_send_json_error('Invalid security token');
    437437            die();
Note: See TracChangeset for help on using the changeset viewer.