summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-06-25 10:04:45 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-06-25 10:04:45 +0000
commit349e6f487ed25d0b18a69bf4b9abd54b4470b89d (patch)
tree8981f9f6f188864f06cbd860ea17545854051919 /roundcubemail/program/steps
parentd43f051d9b3d4bdb15ec8d0b6c9cd95eaa85b073 (diff)
Fixed GoogieSpell checker
git-svn-id: https://svn.roundcube.net/trunk@265 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/spell.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/spell.inc b/roundcubemail/program/steps/mail/spell.inc
index 2ba524e6a..d60e691f6 100644
--- a/roundcubemail/program/steps/mail/spell.inc
+++ b/roundcubemail/program/steps/mail/spell.inc
@@ -24,13 +24,14 @@
$REMOTE_REQUEST = TRUE;
-$google = "www.google.com";
+$google = "ssl://www.google.com";
+$port = 443;
$lang = $_GET['lang'];
$path = "/tbproxy/spell?lang=$lang";
$data = file_get_contents('php://input');
$store = "";
-if ($fp = fsockopen($google, 80, $errno, $errstr, 30))
+if ($fp = fsockopen($google, $port, $errno, $errstr, 30))
{
$out = "POST $path HTTP/1.0\r\n";
$out .= "Host: $google\r\n";
@@ -39,6 +40,7 @@ if ($fp = fsockopen($google, 80, $errno, $errstr, 30))
$out .= "Connection: Close\r\n\r\n";
$out .= $data;
fwrite($fp, $out);
+
while (!feof($fp))
$store .= fgets($fp, 128);
fclose($fp);