Skip to content

Commit

Permalink
refuse control characters in TXT, except for \n and \t
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter van Dijk committed May 17, 2013
1 parent 830281f commit aef7330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/dnslabeltext.rl
Expand Up @@ -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)+;
Expand Down

0 comments on commit aef7330

Please sign in to comment.