mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
3953. [bug] Don't escape semi-colon in TXT fields. [RT #37159]
This commit is contained in:
@@ -1167,12 +1167,12 @@ txt_totext(isc_region_t *source, isc_boolean_t quote, isc_buffer_t *target) {
|
||||
continue;
|
||||
}
|
||||
/*
|
||||
* Escape double quote, semi-colon, backslash.
|
||||
* If we are not enclosing the string in double
|
||||
* quotes also escape at sign.
|
||||
* Escape double quote and backslash. If we are not
|
||||
* enclosing the string in double quotes also escape
|
||||
* at sign and semicolon.
|
||||
*/
|
||||
if (*sp == 0x22 || *sp == 0x3b || *sp == 0x5c ||
|
||||
(!quote && *sp == 0x40)) {
|
||||
if (*sp == 0x22 || *sp == 0x5c ||
|
||||
(!quote && (*sp == 0x40 || *sp == 0x3b))) {
|
||||
if (tl < 2)
|
||||
return (ISC_R_NOSPACE);
|
||||
*tp++ = '\\';
|
||||
|
Reference in New Issue
Block a user