
<!-- saved from url=(0121)http://www.yogatherapyweb.com/sites/all/modules/ubercart/payment/uc_paypal/paypal-wps-needs-primary-email-881606-37.patch -->
<html><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- ./uc_paypal.pages.inc	2010-10-22 11:59:52.000000000 -0500
+++ ./uc_paypal.pages.inc.new	2010-10-22 11:59:46.000000000 -0500
@@ -1,4 +1,4 @@
-&lt;?php
+﻿&lt;?php
 // $Id: uc_paypal.pages.inc,v 1.1.2.12 2010/08/11 17:52:20 islandusurper Exp $
 
 /**
@@ -42,8 +42,8 @@ function uc_paypal_ipn($order_id = 0) {
 
   // Express Checkout IPNs may not have the WPS email stored. But if it is, make
   // sure that the right account is being paid.
-  if (variable_get('uc_paypal_wps_email', '') &amp;&amp; $receiver_email != variable_get('uc_paypal_wps_email', '')) {
-    watchdog('uc_paypal', 'IPN for a different PayPal account attempted.', array(), WATCHDOG_ERROR);
+  if (variable_get('uc_paypal_wps_email', '') &amp;&amp; drupal_strtolower($receiver_email) != drupal_strtolower(variable_get('uc_paypal_wps_email', ''))) {
+    watchdog('uc_paypal', 'IPN for a different PayPal account attempted (Email in Ubercart config: @uc_paypal_wps_email; Receiver Email from PayPal: @receiver_email).', array('@uc_paypal_wps_email' =&gt; variable_get('uc_paypal_wps_email', ''), '@receiver_email' =&gt; $receiver_email), WATCHDOG_ERROR);
     return;
   }
 
</pre></body></html>