summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-07-25 20:09:36 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-07-25 20:09:36 +0000
commit9857348a6ae2ffd0be16c1bc488a31980a673c7d (patch)
treef1a925da395da7f812d2fbd81006838d694e54b0 /roundcubemail/program
parent2258750f7f650f0b8d3c144710a3389f09705474 (diff)
Strip protocol from hostname in HTTP headers (#1486868)
git-svn-id: https://svn.roundcube.net/trunk@3824 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/utils/spell_googie.inc2
-rw-r--r--roundcubemail/program/steps/utils/spell_html_googie.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/utils/spell_googie.inc b/roundcubemail/program/steps/utils/spell_googie.inc
index d06a1a88a..9d47a51b4 100644
--- a/roundcubemail/program/steps/utils/spell_googie.inc
+++ b/roundcubemail/program/steps/utils/spell_googie.inc
@@ -46,7 +46,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";
diff --git a/roundcubemail/program/steps/utils/spell_html_googie.inc b/roundcubemail/program/steps/utils/spell_html_googie.inc
index ee9079dce..7a301b6ab 100644
--- a/roundcubemail/program/steps/utils/spell_html_googie.inc
+++ b/roundcubemail/program/steps/utils/spell_html_googie.inc
@@ -30,7 +30,7 @@ function googie_get($host, $port, $path, $data)
$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";