From bac9ff3393cf4b398b076c7c635c68604055dd75 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Sun, 25 Jun 2006 06:04:45 -0400
Subject: [PATCH] Fixed GoogieSpell checker
---
program/steps/mail/spell.inc | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/program/steps/mail/spell.inc b/program/steps/mail/spell.inc
index 2ba524e..d60e691 100644
--- a/program/steps/mail/spell.inc
+++ b/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 @@
$out .= "Connection: Close\r\n\r\n";
$out .= $data;
fwrite($fp, $out);
+
while (!feof($fp))
$store .= fgets($fp, 128);
fclose($fp);
--
Gitblit v1.9.1