8000 Parsing TXT records does not properly de-escape quotes · Issue #1384 · miekg/dns · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Parsing TXT records does not properly de-escape quotes #1384
Open
@TomOnTime

Description

@TomOnTime

When calling NewRR() on a TXT record, an escaped quote isn't properly de-escaped.

A line such as:

example.com. IN TXT "inner\"quote"

It gets parsed to: inner\"quote
I was expecting: inner"quote

Maybe I'm misreading the RFC? It just seems that without removing the \ there's no way to know what the \ means in the resulting string.

I've created #1383 to demonstrate the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0