disallow multiple uri fragments
This commit is contained in:
parent
9d8cd1bfd9
commit
3085a49d25
|
@ -1898,6 +1898,9 @@ func setURI(h RR_Header, c chan lex, o, f string) (RR, *ParseError, string) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err, ""
|
return nil, err, ""
|
||||||
}
|
}
|
||||||
|
if len(s) > 1 {
|
||||||
|
return nil, &ParseError{f, "bad URI Target", l}, ""
|
||||||
|
}
|
||||||
rr.Target = s[0]
|
rr.Target = s[0]
|
||||||
return rr, nil, c1
|
return rr, nil, c1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue