Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-31424 compare PayPal emails case-insensitively

Credit goes to Chris Follin, thanks!
  • Loading branch information...
commit 408ef58feddfd68330d202664c9c1297fae99ee3 1 parent df93e51
Petr Skoda skodak authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  enrol/paypal/ipn.php
2  enrol/paypal/ipn.php
@@ -172,7 +172,7 @@
172 172
173 173 }
174 174
175   - if ($data->business != $plugin->get_config('paypalbusiness')) { // Check that the email is the one we want it to be
  175 + if (textlib::strtolower($data->business) !== textlib::strtolower($plugin->get_config('paypalbusiness'))) { // Check that the email is the one we want it to be
176 176 message_paypal_error_to_admin("Business email is {$data->business} (not ".
177 177 $plugin->get_config('paypalbusiness').")", $data);
178 178 die;

0 comments on commit 408ef58

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