in reply to Re: Net::DNS::RR patch
in thread Net::DNS::RR patch
I accept your point about only applying the test to TXT records, and have modified the proposed patch accordingly.
However, your regex doesn't work for the observed bug. Using the code from twilde's original bug report:
Your regex:
my $rr = Net::DNS::RR->new_from_string( 'badtxt.krellis.us. 1234 TXT "something ;something else"' ); print '"', $rr->rr_rdata, '"', "\n";
Gives:
""
My patch gives:
"something ;something else"
I also disagree with you assertion that the patch won't allow backslashed quotes within TXT RDATA. e.g.:
my $rr = Net::DNS::RR->new_from_string( 'badtxt.krellis.us. 1234 TXT "something \" ; \" something else"' ); print '"', $rr->rr_rdata, '"', "\n";
Gives:
"something " ; " something else"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::DNS::RR patch
by ikegami (Patriarch) on Dec 16, 2004 at 16:53 UTC |