From 13fcca722cd1bc19f70c998fbdda9f0d85ea53eb Mon Sep 17 00:00:00 2001 From: "Niklas (Krymonota)" Date: Mon, 25 May 2020 17:43:08 +0200 Subject: [PATCH] Log invalid receiver email in PayPal callback This adjustment should make it easier for administrators to identify the cause of this exception. --- .../install/files/lib/action/PaypalCallbackAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1