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

Fix: Validate CNAME targets (check for "/") #37

This commit is contained in:
Tom Limoncelli
2017-06-11 09:30:12 -04:00
parent adf2f5e165
commit 46707722f6
2 changed files with 8 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ func Test_assert_valid_target(t *testing.T) {
{"foo.bar.", false},
{"foo.", false},
{"foo.bar", true},
{"foo&bar", true},
{"foo bar", true},
{"elb21.freshdesk.com/", true},
{"elb21.freshdesk.com/.", true},
}
for _, test := range tests {