Improvements to UI for editing long TXT records

This commit is contained in:
Jamie Cameron
2013-03-06 16:40:50 -08:00
parent 72326b908a
commit 63a1b4a3c6
2 changed files with 3 additions and 1 deletions

View File

@@ -1013,7 +1013,7 @@ elsif ($type eq "HINFO") {
}
elsif ($type eq "TXT") {
print &ui_table_row($text{'value_TXT1'},
&ui_textbox("value0", join("", @v), 80), 3);
&ui_textarea("value0", join("", @v), 5, 80, "soft"), 3);
}
elsif ($type eq "WKS") {
# Well known server

View File

@@ -218,6 +218,8 @@ else {
}
elsif ($in{'type'} eq "TXT") {
$fullvals = $in{'value0'};
$fullvals =~ s/\r//g;
$fullvals =~ s/\n/ /g;
$fullvals =~ s/((?:^|[^\\])(?:\\\\)*)[\"]/$1\\\"/g;
@splitvals = ( );
while($fullvals) {