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

unicode support added to correct issue617 #624

Conversation

mahtin
Copy link
Contributor

@mahtin mahtin commented Dec 18, 2022

This is the two line patch to handle issue #617. The changes allow for a unicode string to be handled by lxml.objectify.fromstring() without it returning None, as it does presently.

This bug can be easily reproduced by running the bpf_filter string udp port 5353 and then add a emoji to your device name (like an iPhone). This causes MDNS packets (i.e. port 5353) to contain an unicode string.

The code change seems to cleanly fix this issue and doesn't affect existing xml packet strings.

@mahtin
Copy link
Contributor Author

mahtin commented Jan 31, 2023

Thanks @KimiNewt for the approval. Only you can do the final merge.

Only those with write access to this repository can merge pull requests.

@KimiNewt KimiNewt merged commit a32e361 into KimiNewt:master Apr 26, 2023
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

Successfully merging this pull request may close these issues.

2 participants