From 57837fd6892aed4ad03f250e120f2b2c79e8a5a5 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Fri, 08 Jan 2010 03:27:57 -0500 Subject: [PATCH] - Bug in spellchecker suggestions when server charset != UTF8 (#1486406) --- program/steps/mail/spell_googie.inc | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/spell_googie.inc b/program/steps/mail/spell_googie.inc index 06c0508..28d339d 100644 --- a/program/steps/mail/spell_googie.inc +++ b/program/steps/mail/spell_googie.inc @@ -48,7 +48,7 @@ $out = "POST $path HTTP/1.0\r\n"; $out .= "Host: $host\r\n"; $out .= "Content-Length: " . strlen($data) . "\r\n"; - $out .= "Content-type: application/x-www-form-urlencoded\r\n"; + $out .= "Content-Type: application/x-www-form-urlencoded\r\n"; $out .= "Connection: Close\r\n\r\n"; $out .= $data; fwrite($fp, $out); @@ -58,6 +58,8 @@ fclose($fp); } +// Don't use server's default Content-Type charset (#1486406) +header("Content-Type: text/xml; charset=".RCMAIL_CHARSET); print $store; exit; -- Gitblit v1.9.1