Fixed request
authorMarcel Werk <burntime@woltlab.com>
Wed, 27 Oct 2021 08:38:34 +0000 (10:38 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 27 Oct 2021 08:38:34 +0000 (10:38 +0200)
wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php

index 6efd9b165069566ef3914dc7ec763fac15dae310..8080d8f2d45a70bfcb311c4356b9a5f2ca7a7d43 100644 (file)
@@ -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();