romanitalian / php-proxy

Automatically exported from code.google.com/p/php-proxy
2 stars 0 forks source link

Old functions, update please #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Simply run a valid response, the $body split() does the warn

What is the expected output? What do you see instead?
Expected output is website with 0 warn (i removed 3 just at start...)

What version of the product are you using? On what operating system?
Im really not sure, because your lastest download code is not the same then the 
trunk source.

Mine is on line 85, in yours is line 92 
(https://code.google.com/p/php-proxy/source/browse/trunk/index.php).

Replace:
$header_ar = split(chr(10),$header); 
With:
$header_ar = explode("\r\n", $header);

// char 10 is only \n (\r is char 13 i guess), you need \r\n wichg means 
carriage-Return then fee-Newline.

Original issue reported on code.google.com by ErM3...@gmail.com on 4 Mar 2015 at 8:01