From: Niklas (Krymonota) Date: Mon, 25 May 2020 15:43:08 +0000 (+0200) Subject: Log invalid receiver email in PayPal callback X-Git-Tag: 3.1.15~18^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=13fcca722cd1bc19f70c998fbdda9f0d85ea53eb;p=GitHub%2FWoltLab%2FWCF.git Log invalid receiver email in PayPal callback This adjustment should make it easier for administrators to identify the cause of this exception. --- diff --git a/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php b/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php index 78be8414aa..f6420c30ad 100644 --- a/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php +++ b/wcfsetup/install/files/lib/action/PaypalCallbackAction.class.php @@ -56,7 +56,7 @@ class PaypalCallbackAction extends AbstractAction { // Check that receiver_email is your Primary PayPal email if (strtolower($_POST['receiver_email']) != strtolower(PAYPAL_EMAIL_ADDRESS)) { - throw new SystemException('invalid receiver_email'); + throw new SystemException("Mismatching receiver_email '" . $_POST['receiver_email'] . "', expected '".PAYPAL_EMAIL_ADDRESS."'."); } // get token