discard \r when reading zonefile

This commit is contained in:
Miek Gieben 2012-02-14 14:05:33 +01:00
parent 35bd7ac4f4
commit b3a58abd24
1 changed files with 4 additions and 1 deletions

View File

@ -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++