Permalink
Browse files

MDL-31424 compare PayPal emails case-insensitively

Credit goes to Chris Follin, thanks!
  • Loading branch information...
1 parent 324efa5 commit 365ef195b5f8b10f05b4bbaa8616ddb23d5ca157 @skodak skodak committed Dec 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/paypal/ipn.php
View
@@ -172,7 +172,7 @@
}
- 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;

0 comments on commit 365ef19

Please sign in to comment.