summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-01-26 11:05:06 +0000
committeralecpl <alec@alec.pl>2010-01-26 11:05:06 +0000
commitbaf645619ab29bd9495d20db94af1b41b6ef1d50 (patch)
treefa280409987123c72747ab8a7ab1656bcd142d55 /program/steps
parent5570ad60b496974607790dab49fc80cce8f5c700 (diff)
- remove google spellchecker response headers to prevent browser error
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/spell_googie.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/steps/mail/spell_googie.inc b/program/steps/mail/spell_googie.inc
index 28d339d41..f3b1c684d 100644
--- a/program/steps/mail/spell_googie.inc
+++ b/program/steps/mail/spell_googie.inc
@@ -58,6 +58,13 @@ if ($fp = fsockopen($host, $port, $errno, $errstr, 30))
fclose($fp);
}
+// remove headers
+$pos = strpos($store, '<?xml');
+$store = substr($store, $pos);
+
+// set response length
+header("Content-Length: " . strlen($store));
+
// Don't use server's default Content-Type charset (#1486406)
header("Content-Type: text/xml; charset=".RCMAIL_CHARSET);
print $store;