From: Marcel Werk Date: Wed, 27 Oct 2021 08:38:34 +0000 (+0200) Subject: Fixed request X-Git-Tag: 5.5.0_Alpha_1~345^2^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ec18c5263b2e693dc4c37e3fb227ab32a77a496;p=GitHub%2FWoltLab%2FWCF.git Fixed request --- diff --git a/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php b/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php index 6efd9b1650..8080d8f2d4 100644 --- a/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php +++ b/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php @@ -43,8 +43,8 @@ class PaypalCallbackAction extends AbstractAction } $request = new Request('POST', $url, [ - 'form_params' => \array_merge(['cmd' => '_notify-validate'], $_POST), - ]); + 'Content-Type' => 'application/x-www-form-urlencoded', + ], \http_build_query(\array_merge(['cmd' => '_notify-validate'], $_POST), '', '&', \PHP_QUERY_RFC1738)); $client = HttpFactory::getDefaultClient(); $response = $client->send($request); $content = (string)$response->getBody();