In commerce_paypal.module the function commerce_paypal_process_ipn() uses the incorrect signature

// Process the HTTP request to validate the IPN.
    $response = drupal_http_request($host, array(), 'POST', implode('&', $variables));

The signature being used is for D6 however in D7 the correct signature is

drupal_http_request($url, array $options = array())

The arguments 'POST' and $variables are to be passed into the $options array instead.

Thank You.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andyg5000’s picture

Status: Active » Needs review
FileSize
631 bytes

Thanks for finding this. Here's a patch to fix.

rszrama’s picture

Status: Needs review » Fixed

Honestly, I have no clue why this wasn't generating error messages before. Many thanks for the fix.

Status: Fixed » Closed (fixed)

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