]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Fix double escaping in string-list SVCB parameter to_text() (#1280)
authorVincent Gao <gaobing1230@gmail.com>
Sat, 25 Jul 2026 16:18:25 +0000 (18:18 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Jul 2026 16:18:25 +0000 (09:18 -0700)
commit2a0656a33af0ed3f2c3c78bcf2f92d5dc28115a9
treedaa3cf1727bea3e21e0a34686864e26ac90797fc
parentaf21b39addc69ff9b414d3d61f347af13682fdd0
Fix double escaping in string-list SVCB parameter to_text() (#1280)

The list-level _escapify escaped non-printable bytes into \ddd, and
dns.rdata._escapify() then escaped that backslash, emitting \ddd,
which parses back as the literal characters 'ddd'.  Make the inner
escape purely list-level (',' and '\') and let dns.rdata._escapify()
apply the character-string escaping once.
dns/rdtypes/svcbbase.py
doc/whatsnew.rst
tests/test_svcb.py