bump irc-go to latest

This commit is contained in:
Shivaram Lingamneni 2021-02-21 20:22:32 -05:00
parent 08eabea78f
commit 7af94c79fd
4 changed files with 6 additions and 3 deletions

View file

@ -419,7 +419,8 @@ func (ircmsg *IRCMessage) line(tagLimit, clientOnlyTagDataLimit, serverAddedTagD
buf.WriteString("\r\n")
result := buf.Bytes()
if bytes.IndexByte(result, '\x00') != -1 {
toValidate := result[:len(result)-2]
if bytes.IndexByte(toValidate, '\x00') != -1 || bytes.IndexByte(toValidate, '\r') != -1 || bytes.IndexByte(toValidate, '\n') != -1 {
return nil, ErrorLineContainsBadChar
}
return result, nil

2
vendor/modules.txt vendored
View file

@ -21,7 +21,7 @@ github.com/go-sql-driver/mysql
# github.com/gorilla/websocket v1.4.2
## explicit
github.com/gorilla/websocket
# github.com/goshuirc/irc-go v0.0.0-20210215162435-14cd697c0c8c
# github.com/goshuirc/irc-go v0.0.0-20210222010959-6e139f6c42e9
## explicit
github.com/goshuirc/irc-go/ircfmt
github.com/goshuirc/irc-go/ircmsg