Skip to content

Update TwocheckoutApi.php To Account for UTF-8#22

Open
volomike wants to merge 1 commit into2Checkout:masterfrom
volomike:patch-1
Open

Update TwocheckoutApi.php To Account for UTF-8#22
volomike wants to merge 1 commit into2Checkout:masterfrom
volomike:patch-1

Conversation

@volomike
Copy link

@volomike volomike commented May 3, 2016

TwoCheckout used strlen() on the JSON string content-length and does not take into consideration Unicode characters that change string length.

This version uses mb_strlen() instead.

TwoCheckout used strlen() on the JSON string content-length and does not take into consideration Unicode characters that change string length.

This version uses mb_strlen() instead.
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.

2 participants