Skip to content
Browse files

MDL-31424 compare PayPal emails case-insensitively

Credit goes to Chris Follin, thanks!
  • Loading branch information...
1 parent df93e51 commit 408ef58feddfd68330d202664c9c1297fae99ee3 @skodak skodak committed Dec 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/paypal/ipn.php
View
2 enrol/paypal/ipn.php
@@ -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 408ef58

Please sign in to comment.
Something went wrong with that request. Please try again.