Skip to content

fixed labels parsing for escaped dot sequences #21

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

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from

Conversation

mstrouhal
Copy link

Hello!

I have found a problem occurring when you are using queries with escaped dots.

If you use \. sequence in your DNS query, it is not parsed correctly as single label, but split into two labels, causing character \ to be in the end of previous label and escaped by another \, resulting in \\..

That is something else then you wanted to query in the first place.

These few lines of code are fixing the problem.

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.

1 participant