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:
@ -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")),
|
||||
),
|
||||
|
||||
|
Reference in New Issue
Block a user