phpBBHS Update - Important PayPal Fix

Important announcements.
Post Reply
PHPBBHS
Posts: 1119
Joined: 30 Jun 2009, 20:15
Hosted Forums: 0

phpBBHS Update - Important PayPal Fix

Post by PHPBBHS »

PayPal is doing a change to IPN taking affect February 1, 2013 which affects phpBBHS

We have updated phpBBHS with the fix and include included a hotfix for ipn forum upgrade system.

Hotfix
Open hs/ipn.php

Find around line 72

Code: Select all

$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Host: www.paypal.com\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .= "Connection: close\r\n\r\n";
Replace with

Code: Select all

$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";

if ($adFreeSettings['sandbox'] == 0)
	$header .= "Host: www.paypal.com\r\n";
else
	$header .= "Host: www.sandbox.paypal.com\r\n";

$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .= "Connection: close\r\n\r\n";

Post Reply