diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 20:35:00 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | d2bd952210adbfe2618637582f4df8a8ca710d87 (patch) | |
tree | 69e1e84377e03c1f692d6f7ac0b8c6488f153496 /tests/unit/plugins/irc/test-irc-protocol.cpp | |
parent | 9fbe18eb2790fbd99c0da176f6d14d204fd89d0a (diff) | |
download | weechat-d2bd952210adbfe2618637582f4df8a8ca710d87.zip |
tests: protect IRC message with quotes in command /server fakerecv
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 38dbd87a0..7fdeb037a 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -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); |