Paypal is case-insensitive regarding emails, that is PayPal@example.com and paypal@example.com are treated as the same email.

Suppose now that a payment method uses email with uppercase letters, When PayPal sends IPN, $_POST['business'] contains email always in lowercase. During access validation module compares emails as they are and finds they are different and return 'Access denied' response. Otherwise we should do case-insensitive comparison.

Comments

alex.bukach’s picture

Status: Active » Needs review
StatusFileSize
new674 bytes
xano’s picture

Man, another edge case? You should do core development ;-) Thanks for reporting this! Can you extend the patch with a code comment explaining why we cast both values to lower case?

alex.bukach’s picture

StatusFileSize
new851 bytes

Sure.

xano’s picture

Status: Needs review » Fixed

Fixed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.