diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-03-04 21:43:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-04 21:43:21 +0100 |
commit | 29f27cfb39a86094af746c1cd654d33436d29479 (patch) | |
tree | ceda3b35ac8830275c9d1f10d07e7dc8bfcb1ac2 /src/fe-common | |
parent | dc99f8d7a5f90eebd4c52cef8d186bf20e2a9912 (diff) | |
parent | 027acffb4208d7e6ba8e229cbf6c3dae6f5dabaf (diff) | |
download | irssi-29f27cfb39a86094af746c1cd654d33436d29479.zip |
Merge pull request #658 from LemonBoy/dcc-autoaccept
Quote the filename when dcc requests are auto accepted.
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/chat-completion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c index 1f00feaf..4fe9509a 100644 --- a/src/fe-common/core/chat-completion.c +++ b/src/fe-common/core/chat-completion.c @@ -1113,7 +1113,7 @@ static void event_text(const char *data, SERVER_REC *server, WI_ITEM_REC *item) /* the nick is quoted in case it contains '-' character. also spaces should work too now :) The nick is also escaped in case it contains '\' characters */ - target = escape_string(window_item_get_target(item)); + target = escape_string(window_item_get_target(item), "\"'\\"); str = g_strdup_printf(IS_CHANNEL(item) ? "-channel \"%s\" %s" : IS_QUERY(item) ? "-nick \"%s\" %s" : "%s %s", target, line); |