We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\x00
irc.utils.safe() strips CR and LF from its input, but not NUL (\x00) even though all three octets are disallowed in IRC lines.
irc.utils.safe()
sopel/sopel/irc/utils.py
Lines 20 to 48 in 3ff58c1
Plugins accidentally sending NUL will most likely cause the server to disconnect the bot with an error ("malformed data" or similar).
Plugin authors must manually ensure that anything their code sends to IRC does not contain the NUL byte.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: