discard \r when reading zonefile
This commit is contained in:
parent
35bd7ac4f4
commit
b3a58abd24
5
zscan.go
5
zscan.go
|
@ -521,8 +521,11 @@ func zlexer(s scanner.Scanner, c chan lex) {
|
||||||
stri = 0
|
stri = 0
|
||||||
}
|
}
|
||||||
commt = true
|
commt = true
|
||||||
|
case '\r':
|
||||||
|
// discard
|
||||||
|
// this means it can also not be used as rdata
|
||||||
case '\n':
|
case '\n':
|
||||||
// Hmmm, escape newline
|
// hmmm, escape newline
|
||||||
if quote {
|
if quote {
|
||||||
str[stri] = byte(x[0])
|
str[stri] = byte(x[0])
|
||||||
stri++
|
stri++
|
||||||
|
|
Loading…
Reference in New Issue