Plugin Directory

Changeset 2200730


Ignore:
Timestamp:
11/25/2019 05:48:59 PM (6 years ago)
Author:
asaas
Message:

Committing 1.2.2 to trunk

Location:
woo-asaas/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woo-asaas/trunk/includes/class-wc-asaas.php

    r2192816 r2200730  
    2929     * @var string
    3030     */
    31     public $version = '1.2.1';
     31    public $version = '1.2.2';
    3232
    3333    /**
  • woo-asaas/trunk/includes/webhook/class-endpoint.php

    r1965980 r2200730  
    125125                $this->response( 200, $error->getMessage() );
    126126            } catch ( \Exception $error ) {
     127                error_log( $error->getMessage() );
    127128                $this->response( 500, $error->getMessage() );
    128129            }
     
    176177    private function validate_token() {
    177178        $access_token = isset( $_SERVER['HTTP_ASAAS_ACCESS_TOKEN'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_ASAAS_ACCESS_TOKEN'] ) ) : '';
    178         if ( $this->gateway->get_option( 'webhook_access_token' ) !== $access_token ) {
     179        if ( $this->gateway->get_option( 'webhook_access_token' ) !== $access_token && html_entity_decode( $this->gateway->get_option( 'webhook_access_token' ) ) !== $access_token ) {
    179180            throw new \Exception( 'Invalid Token' );
    180181        }
  • woo-asaas/trunk/readme.txt

    r2192816 r2200730  
    44Tags: asaas, payment, payment gateway, woocommerce, credit card, bank ticket
    55Requires at least: 4.4
    6 Tested up to: 4.9.6
     6Tested up to: 5.3
    77Requires PHP: 5.6
    8 Stable tag: 1.2.1
     8Stable tag: 1.2.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4747
    4848== Changelog ==
     49
     50= 1.2.2 =
     51* Fix - Fix token validation
    4952
    5053= 1.2.1 =
  • woo-asaas/trunk/woo-asaas.php

    r2192816 r2200730  
    88 * Text Domain:     woo-asaas
    99 * Domain Path:     /languages
    10  * Version:         1.2.1
     10 * Version:         1.2.2
    1111 *
    1212 * @package         WooAsaas
Note: See TracChangeset for help on using the changeset viewer.