diff options
author | thomascube <thomas@roundcube.net> | 2006-06-25 10:04:45 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-06-25 10:04:45 +0000 |
commit | bac9ff3393cf4b398b076c7c635c68604055dd75 (patch) | |
tree | a14e7da1b155017d48a1c9556f0bb888a7d29e01 | |
parent | fb5f4f31cf8ece6d80cfcb064ec5a74a59699acc (diff) |
Fixed GoogieSpell checker
-rw-r--r-- | 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 2ba524e6a..d60e691f6 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 @@ 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); |