disallow multiple uri fragments

This commit is contained in:
Miek Gieben 2015-07-28 21:44:50 +01:00
parent 9d8cd1bfd9
commit 3085a49d25
1 changed files with 3 additions and 0 deletions

View File

@ -1898,6 +1898,9 @@ func setURI(h RR_Header, c chan lex, o, f string) (RR, *ParseError, string) {
if err != nil {
return nil, err, ""
}
if len(s) > 1 {
return nil, &ParseError{f, "bad URI Target", l}, ""
}
rr.Target = s[0]
return rr, nil, c1
}