Permalink
Browse files

refuse control characters in TXT, except for \n and \t

  • Loading branch information...
1 parent 830281f commit aef73302b5bf7942f9ec44313991986a62153be8 @Habbie Habbie committed May 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/dnslabeltext.rl
@@ -62,7 +62,7 @@ vector<string> segmentDNSText(const string& input )
}
escaped = '\\' (([^0-9]@reportEscaped) | ([0-9]{3}$reportEscapedNumber%doneEscapedNumber));
- plain = ((extend-'\\'-'"')|'\n'|'\t') $ reportPlain;
+ plain = ((extend-cntrl-'\\'-'"')|'\n'|'\t') $ reportPlain;
txtElement = escaped | plain;
main := (('"' txtElement* '"' space?) >segmentBegin %segmentEnd)+;

0 comments on commit aef7330

Please sign in to comment.