mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 11:13:12 +02:00
irc: escape backslashes in raw buffer (closes #1838)
This commit is contained in:
@@ -25,6 +25,7 @@ New features::
|
||||
Bug fixes::
|
||||
|
||||
* core: fix context info in buffers with free content (issue #1832)
|
||||
* irc: escape backslashes in raw buffer (issue #1838)
|
||||
|
||||
[[v3.7]]
|
||||
== Version 3.7 (2022-10-09)
|
||||
|
||||
@@ -244,6 +244,12 @@ irc_raw_message_print (struct t_irc_raw_message *raw_message)
|
||||
buf2[pos_buf2++] = hexa[ptr_buf[pos_buf] % 16];
|
||||
pos_buf++;
|
||||
}
|
||||
else if (ptr_buf[pos_buf] == '\\')
|
||||
{
|
||||
buf2[pos_buf2++] = '\\';
|
||||
buf2[pos_buf2++] = '\\';
|
||||
pos_buf++;
|
||||
}
|
||||
else
|
||||
{
|
||||
char_size = weechat_utf8_char_size ((const char *)(ptr_buf + pos_buf));
|
||||
|
||||
Reference in New Issue
Block a user