thomascube
2010-07-25 52c0f7626c6bad1f27e0d5ff8199e4abdd427712
Strip protocol from hostname in HTTP headers (#1486868)

2 files modified
4 ■■■■ changed files
program/steps/utils/spell_googie.inc 2 ●●● patch | view | raw | blame | history
program/steps/utils/spell_html_googie.inc 2 ●●● patch | view | raw | blame | history
program/steps/utils/spell_googie.inc
@@ -46,7 +46,7 @@
if ($fp = fsockopen($host, $port, $errno, $errstr, 30))
  {
  $out = "POST $path HTTP/1.0\r\n";
  $out .= "Host: $host\r\n";
  $out .= "Host: " . str_replace('ssl://', '', $host) . "\r\n";
  $out .= "Content-Length: " . strlen($data) . "\r\n";
  $out .= "Content-Type: application/x-www-form-urlencoded\r\n";
  $out .= "Connection: Close\r\n\r\n";
program/steps/utils/spell_html_googie.inc
@@ -30,7 +30,7 @@
    $store = '';
    if ($fp = fsockopen($host, $port, $errno, $errstr, 30)) {
        $out = "POST $path HTTP/1.0\r\n";
        $out .= "Host: $host\r\n";
        $out .= "Host: " . str_replace('ssl://', '', $host) . "\r\n";
        $out .= "Content-Length: " . strlen($data) . "\r\n";
        $out .= "Content-Type: application/x-www-form-urlencoded\r\n";
        $out .= "Connection: Close\r\n\r\n";