Skip to content

Update wc-cointopay.php - #1

Open
ultrafunkamsterdam wants to merge 1 commit into
Cointopay:masterfrom
ultrafunkamsterdam:patch-2
Open

ultrafunkamsterdam wants to merge 1 commit into
Cointopay:masterfrom
ultrafunkamsterdam:patch-2

Conversation

@ultrafunkamsterdam

@ultrafunkamsterdam ultrafunkamsterdam commented Apr 17, 2020

Copy link
Copy Markdown

check_cointopay_response will always end up failed since the tests ( 0 === $notenough ) checks on value and type.

the cause is probably(untested) the sanitize_text_field returning an string in the following part:

$notenough        = ( !empty(sanitize_text_field($_REQUEST['notenough'])) ) ? sanitize_text_field($_REQUEST['notenough']) : ''; 

@Cointopaydev
Cointopaydev marked this pull request as ready for review April 17, 2020 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant