mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-21 06:58:51 -05:00
From coverity: force encoding to UTF-8 on socket output stream
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2237 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
8f8e979c6f
commit
7fec75ddb7
@ -172,12 +172,12 @@ public class AbstractConnection extends Thread {
|
|||||||
*/
|
*/
|
||||||
public void sendClient(String prefix, String message) throws IOException {
|
public void sendClient(String prefix, String message) throws IOException {
|
||||||
if (prefix != null) {
|
if (prefix != null) {
|
||||||
os.write(prefix.getBytes());
|
os.write(prefix.getBytes("UTF-8"));
|
||||||
DavGatewayTray.debug(new BundleMessage("LOG_SEND_CLIENT_PREFIX_MESSAGE", prefix, message));
|
DavGatewayTray.debug(new BundleMessage("LOG_SEND_CLIENT_PREFIX_MESSAGE", prefix, message));
|
||||||
} else {
|
} else {
|
||||||
DavGatewayTray.debug(new BundleMessage("LOG_SEND_CLIENT_MESSAGE", message));
|
DavGatewayTray.debug(new BundleMessage("LOG_SEND_CLIENT_MESSAGE", message));
|
||||||
}
|
}
|
||||||
os.write(message.getBytes());
|
os.write(message.getBytes("UTF-8"));
|
||||||
os.write((char) 13);
|
os.write((char) 13);
|
||||||
os.write((char) 10);
|
os.write((char) 10);
|
||||||
os.flush();
|
os.flush();
|
||||||
|
Loading…
Reference in New Issue
Block a user