inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 3a68e05d9a30ed18cebf80f81258a9fb0ba67a0c
parent 9b25df31096f889e3653ab100493133014d4fe73
Author: Peter Powell <petpow@saberuk.com>
Date:   Sat,  2 Mar 2019 10:40:48 +0000

Reject client-to-client tags with no name.

Diffstat:
Msrc/modules/m_ircv3_ctctags.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/m_ircv3_ctctags.cpp b/src/modules/m_ircv3_ctctags.cpp @@ -280,7 +280,7 @@ class C2CTags : public ClientProtocol::MessageTagProvider { // A client-only tag is prefixed with a plus sign (+) and otherwise conforms // to the format specified in IRCv3.2 tags. - if (tagname[0] != '+') + if (tagname[0] != '+' || tagname.length() < 2) return MOD_RES_PASSTHRU; // If the user is local then we check whether they have the message-tags cap