This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/lib/PayPal/Core/PayPalHttpConnection.php
Ahmad Saad Aldeen 5cec5d9c07 Could not generate new Access token. Invalid response from server
Passing null as length will not make mb_substr use it's default, instead it will interpret it as 0.
$result = mb_substr($result, $responseHeaderSize, null, '8bit');
Instead use:
$result = mb_substr($result, $responseHeaderSize, mb_strlen($result), '8bit');
2016-09-30 20:49:53 +02:00

7.4 KiB