From 408ef58feddfd68330d202664c9c1297fae99ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Sat, 8 Dec 2012 13:16:04 +0100 Subject: [PATCH] MDL-31424 compare PayPal emails case-insensitively Credit goes to Chris Follin, thanks! --- enrol/paypal/ipn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrol/paypal/ipn.php b/enrol/paypal/ipn.php index 530cb85dc56..86951db621f 100644 --- a/enrol/paypal/ipn.php +++ b/enrol/paypal/ipn.php @@ -172,7 +172,7 @@ if (strlen($result) > 0) { } - if ($data->business != $plugin->get_config('paypalbusiness')) { // Check that the email is the one we want it to be + if (textlib::strtolower($data->business) !== textlib::strtolower($plugin->get_config('paypalbusiness'))) { // Check that the email is the one we want it to be message_paypal_error_to_admin("Business email is {$data->business} (not ". $plugin->get_config('paypalbusiness').")", $data); die;