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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user