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

Fix to prevent double stripping of backslashes. #113

Merged
merged 1 commit into from
Nov 12, 2022

Conversation

SloEddy
Copy link
Contributor

@SloEddy SloEddy commented Jul 12, 2022

@samuelwilliams parsing a bind file like below currently triggers a unicode conversion to occur, stripslashes appears to be the problem but when reading fromText the handleTxt method already strips the necessary back slashes, re-stripping them in setText is then a problem

Even if it's rather unlikely \010 will ever be needed in a TXT record the parser shouldn't convert things to unicode if the double escape sequence followed by numbers does occur.

$ORIGIN example.com.
@ 100 IN TXT "text\\010some more text"

@SloEddy SloEddy force-pushed the fix-double-escapes branch from 79978cd to b7f1880 Compare July 18, 2022 08:30
@justasSendrauskas
Copy link

would be good to get this in...

@samuelwilliams samuelwilliams merged commit 3047828 into Badcow:master Nov 12, 2022
@SloEddy SloEddy deleted the fix-double-escapes branch November 28, 2022 15:49
@SloEddy SloEddy restored the fix-double-escapes branch November 28, 2022 15:49
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.

3 participants