1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

INWX: Guard against single-quote TXT targets (#971)

* INWX: split out and disable TXT with single-quote test
* INWX: add check for single-quotes in TXT records
This commit is contained in:
Sven Peter
2020-11-28 21:38:58 +01:00
committed by GitHub
parent d6b191bae4
commit e29f7440f5
2 changed files with 21 additions and 1 deletions

View File

@ -683,7 +683,10 @@ func makeTests(t *testing.T) []*TestGroup {
tc("Create 1 TXT as array", txtmulti("foo", []string{"simple"})), // Same as non-TXTMulti
clear(),
tc("Create a 255-byte TXT", txt("foo", strings.Repeat("A", 255))),
clear(),
),
testgroup("single TXT with single-quote",
not("INWX"),
tc("Create TXT with single-quote", txt("foo", "blah`blah")),
),