Changeset 2200730
- Timestamp:
- 11/25/2019 05:48:59 PM (6 years ago)
- Location:
- woo-asaas/trunk
- Files:
-
- 4 edited
-
includes/class-wc-asaas.php (modified) (1 diff)
-
includes/webhook/class-endpoint.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
woo-asaas.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-asaas/trunk/includes/class-wc-asaas.php
r2192816 r2200730 29 29 * @var string 30 30 */ 31 public $version = '1.2. 1';31 public $version = '1.2.2'; 32 32 33 33 /** -
woo-asaas/trunk/includes/webhook/class-endpoint.php
r1965980 r2200730 125 125 $this->response( 200, $error->getMessage() ); 126 126 } catch ( \Exception $error ) { 127 error_log( $error->getMessage() ); 127 128 $this->response( 500, $error->getMessage() ); 128 129 } … … 176 177 private function validate_token() { 177 178 $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 ) { 179 180 throw new \Exception( 'Invalid Token' ); 180 181 } -
woo-asaas/trunk/readme.txt
r2192816 r2200730 4 4 Tags: asaas, payment, payment gateway, woocommerce, credit card, bank ticket 5 5 Requires at least: 4.4 6 Tested up to: 4.9.66 Tested up to: 5.3 7 7 Requires PHP: 5.6 8 Stable tag: 1.2. 18 Stable tag: 1.2.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 47 47 48 48 == Changelog == 49 50 = 1.2.2 = 51 * Fix - Fix token validation 49 52 50 53 = 1.2.1 = -
woo-asaas/trunk/woo-asaas.php
r2192816 r2200730 8 8 * Text Domain: woo-asaas 9 9 * Domain Path: /languages 10 * Version: 1.2. 110 * Version: 1.2.2 11 11 * 12 12 * @package WooAsaas
Note: See TracChangeset
for help on using the changeset viewer.