summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2013-02-28 09:06:37 +0100
committersmos <seth.mos@dds.nl>2013-02-28 09:06:37 +0100
commit34121b0c65afc7daecba34d5575a5d3a9f27973e (patch)
treea944404718d35a508f6aae931184bbd799995bae /usr
parentf2bd7b99956982f5bef03f2682d6d6ce0e79a949 (diff)
downloadpfsense-34121b0c65afc7daecba34d5575a5d3a9f27973e.zip
pfsense-34121b0c65afc7daecba34d5575a5d3a9f27973e.tar.gz
Unbreak the html table, this was missing a table cell close tag, also add trim() on the output.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_arp.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/diag_arp.php b/usr/local/www/diag_arp.php
index f79efce..796e8e4 100755
--- a/usr/local/www/diag_arp.php
+++ b/usr/local/www/diag_arp.php
@@ -321,14 +321,15 @@ $mac_man = load_mac_manufacturer_table();
<td class="listlr"><?=$entry['ip'];?></td>
<td class="listr">
<?php
- $mac=$entry['mac'];
+ $mac=trim($entry['mac']);
$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
print $mac;
if(isset($mac_man[$mac_hi])){ print "<br/><font size=\"-2\"><i>{$mac_man[$mac_hi]}</i></font>"; }
?>
+ </td>
<td class="listr">
<?php
- echo str_replace("Z_ ", "", $entry['dnsresolve']);
+ echo trim(str_replace("Z_ ", "", $entry['dnsresolve']));
?>
</td>
<td class="listr"><?=$hwif[$entry['interface']];?></td>
OpenPOWER on IntegriCloud