- remove google spellchecker response headers to prevent browser error

release-0.6
alecpl 15 years ago
parent 5570ad60b4
commit baf645619a

@ -58,6 +58,13 @@ if ($fp = fsockopen($host, $port, $errno, $errstr, 30))
fclose($fp); 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) // Don't use server's default Content-Type charset (#1486406)
header("Content-Type: text/xml; charset=".RCMAIL_CHARSET); header("Content-Type: text/xml; charset=".RCMAIL_CHARSET);
print $store; print $store;

Loading…
Cancel
Save