Fix generated record value

This commit is contained in:
Jamie Cameron
2014-08-27 16:30:11 -07:00
parent 70318ca08c
commit 033fa279f1
2 changed files with 4 additions and 2 deletions

View File

@@ -44,7 +44,8 @@ if ($in{'from'} && $in{'to'}) {
$rhs =~ s/\$\$/\0/g;
$rhs =~ s/\$/$i/g;
$rhs =~ s/\0/\$/g;
$rhsfull = $rhs =~ /\.$/ ? $rhs :
$rhsfull = &check_ipaddress($rhs) ? $rhs :
$rhs =~ /\.$/ ? $rhs :
$dom eq "." ? "$rhs." : "$rhs.$dom";
push(@recs, { 'name' => $lhsfull,
'values' => [ $rhsfull ],

View File

@@ -44,7 +44,8 @@ if ($in{'show'}) {
$rhs =~ s/\$\$/\0/g;
$rhs =~ s/\$/$i/g;
$rhs =~ s/\0/\$/g;
$rhsfull = $rhs =~ /\.$/ ? $rhs :
$rhsfull = &check_ipaddress($rhs) ? $rhs :
$rhs =~ /\.$/ ? $rhs :
$dom eq "." ? "$rhs." : "$rhs.$dom";
print &ui_columns_row([