- Bug in spellchecker suggestions when server charset != UTF8 (#1486406)

release-0.6
alecpl 15 years ago
parent 892af47869
commit 57837fd689

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Bug in spellchecker suggestions when server charset != UTF8 (#1486406)
- Managesieve: Fix requires generation for multiple actions (#1486397) - Managesieve: Fix requires generation for multiple actions (#1486397)
- Fix LDAP problem with special characters in RDN (#1486320) - Fix LDAP problem with special characters in RDN (#1486320)
- Improved handling of message parts of type message/rfc822 - Improved handling of message parts of type message/rfc822

@ -48,7 +48,7 @@ if ($fp = fsockopen($host, $port, $errno, $errstr, 30))
$out = "POST $path HTTP/1.0\r\n"; $out = "POST $path HTTP/1.0\r\n";
$out .= "Host: $host\r\n"; $out .= "Host: $host\r\n";
$out .= "Content-Length: " . strlen($data) . "\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 .= "Connection: Close\r\n\r\n";
$out .= $data; $out .= $data;
fwrite($fp, $out); fwrite($fp, $out);
@ -58,6 +58,8 @@ if ($fp = fsockopen($host, $port, $errno, $errstr, 30))
fclose($fp); fclose($fp);
} }
// Don't use server's default Content-Type charset (#1486406)
header("Content-Type: text/xml; charset=".RCMAIL_CHARSET);
print $store; print $store;
exit; exit;

@ -71,7 +71,7 @@ foreach ($words as $w) {
$out .= '</spellresult>'; $out .= '</spellresult>';
header("Content-Type: text/xml"); header("Content-Type: text/xml; charset=".RCMAIL_CHARSET);
echo $out; echo $out;
exit; exit;

Loading…
Cancel
Save