Skip to content
New issue

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

Should not accept invalid UTF-8 as metadata value #77

Open
progval opened this issue Dec 22, 2015 · 0 comments
Open

Should not accept invalid UTF-8 as metadata value #77

progval opened this issue Dec 22, 2015 · 0 comments

Comments

@progval
Copy link
Contributor

progval commented Dec 22, 2015

sock.sendall(b'METADATA * SET valid_key1 :invalid UTF-8 ->\xc3\r\n')

The server accepts this:

S -> C: :MyLittleServer 761 * valid_key1 * :invalid UTF-8 ->�
S -> C: :MyLittleServer 762 :end of metadata

And it also sends it when it is requested later. But it should not:

Values are unrestricted, except that they MUST be UTF-8.

-- http://ircv3.net/specs/core/metadata-3.2.html#metadata-restrictions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant