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
AUTHENTICATE
Sopel uses a literal \0 instead of the null byte in AUTHENTICATE payloads.
\0
auth_username = jilles auth_password = sesame auth_method = sasl
Sopel will then send this to the server:
AUTHENTICATE amlsbGVzXDBqaWxsZXNcMHNlc2FtZQ==
It should send this:
AUTHENTICATE amlsbGVzAGppbGxlcwBzZXNhbWU=
base64-decoded, they can be represented as Python literals like this, respectively: "jilles\\0jilles\\0sesame" and "jilles\0jilles\0sesame".
"jilles\\0jilles\\0sesame"
"jilles\0jilles\0sesame"
.version
setup.py install
This is because of this change: https://github.com/sopel-irc/sopel/pull/1928/files#diff-a3d2e4c9269312d687f6dbab17168611fd71629ef36b099985b9ba4bd293c853R838
this is equivalent to replacing "\0" with "\\0".
"\0"
"\\0"
I'm guessing this was to fix some sort of lint warning, but it also changes the behavior. Instead, you should probably use a bytes object.
bytes
The text was updated successfully, but these errors were encountered:
Nice catch!
Sorry, something went wrong.
Should be fixed by #1976, thank you again @progval for the bug report!
Exirel
Successfully merging a pull request may close this issue.
Description
Sopel uses a literal
\0
instead of the null byte in AUTHENTICATE payloads.Reproduction steps
Sopel will then send this to the server:
Expected behavior
It should send this:
base64-decoded, they can be represented as Python literals like this, respectively:
"jilles\\0jilles\\0sesame"
and"jilles\0jilles\0sesame"
.Environment
.version
: mastersetup.py install
This is because of this change: https://github.com/sopel-irc/sopel/pull/1928/files#diff-a3d2e4c9269312d687f6dbab17168611fd71629ef36b099985b9ba4bd293c853R838
this is equivalent to replacing
"\0"
with"\\0"
.I'm guessing this was to fix some sort of lint warning, but it also changes the behavior. Instead, you should probably use a
bytes
object.The text was updated successfully, but these errors were encountered: