1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

tests: protect IRC message with quotes in command /server fakerecv

This commit is contained in:
Sébastien Helleu
2021-10-16 20:35:00 +02:00
parent 9fbe18eb27
commit d2bd952210
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ TEST_GROUP(IrcProtocolWithServer)
snprintf (str_command, sizeof (str_command),
"/command -buffer irc.server." IRC_FAKE_SERVER " irc "
"/server fakerecv %s",
"/server fakerecv \"%s\"",
command);
run_cmd_quiet (str_command);
+1 -1
View File
@@ -1048,7 +1048,7 @@ TEST_GROUP(IrcServerConnected)
snprintf (str_command, sizeof (str_command),
"/command -buffer irc.server." IRC_FAKE_SERVER " irc "
"/server fakerecv %s",
"/server fakerecv \"%s\"",
command);
run_cmd_quiet (str_command);
}