NUL (\x00
) is not filtered from IRC args/text
#2566
Labels
Milestone
\x00
) is not filtered from IRC args/text
#2566
Requested Feature
irc.utils.safe()
strips CR and LF from its input, but not NUL (\x00
) even though all three octets are disallowed in IRC lines.sopel/sopel/irc/utils.py
Lines 20 to 48 in 3ff58c1
Problems Solved
Plugins accidentally sending NUL will most likely cause the server to disconnect the bot with an error ("malformed data" or similar).
Alternatives
Plugin authors must manually ensure that anything their code sends to IRC does not contain the NUL byte.
Notes
No response
The text was updated successfully, but these errors were encountered: