Thomas Bruederli
2014-01-14 aa581c2912fa291c59605d876a6b37241a6a8b06
program/steps/utils/spell_html.inc
@@ -46,12 +46,17 @@
}
if ($error = $spellchecker->error()) {
    rcube::raise_error(array('code' => 500, 'type' => 'php',
        'file' => __FILE__, 'line' => __LINE__,
        'message' => sprintf("Spell check engine error: " . $error)),
        true, false);
    echo '{"error":{"errstr":"' . addslashes($error) . '","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}';
    exit;
}
// send output
header("Content-Type: text/xml; charset=".RCMAIL_CHARSET);
header("Content-Type: text/xml; charset=".RCUBE_CHARSET);
echo json_encode($result);
exit;