diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 16:22:05 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 16:22:05 -0500 |
commit | 4b72f68fd9fa2c33d34efafc23f31a374f1a6a5a (patch) | |
tree | b9577b5ba78c1667fdd52c3ee86805a016fe6fa4 /src/usr/local/www/firewall_nat.php | |
parent | 8b2cb5a45c9a815382acd634189a5c8090c4c0ff (diff) | |
download | pfsense-4b72f68fd9fa2c33d34efafc23f31a374f1a6a5a.zip pfsense-4b72f68fd9fa2c33d34efafc23f31a374f1a6a5a.tar.gz |
Replace '_' with '_<wbr> when displaying alias names. Allows long alias names with underscores to word-break better.
Diffstat (limited to 'src/usr/local/www/firewall_nat.php')
-rw-r--r-- | src/usr/local/www/firewall_nat.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usr/local/www/firewall_nat.php b/src/usr/local/www/firewall_nat.php index 860f90f..4bf2316 100644 --- a/src/usr/local/www/firewall_nat.php +++ b/src/usr/local/www/firewall_nat.php @@ -335,7 +335,7 @@ foreach ($a_nat as $natent): <?php endif; ?> - <?=str_replace('_', ' ', htmlspecialchars(pprint_address($natent['source'])))?> + <?=str_replace('_', '_<wbr>', htmlspecialchars(pprint_address($natent['source'])))?> <?php if (isset($alias['src'])): ?> @@ -352,7 +352,7 @@ foreach ($a_nat as $natent): <?php endif; ?> - <?=str_replace('_', ' ', htmlspecialchars(pprint_port($natent['source']['port'])))?> + <?=str_replace('_', '_<wbr>', htmlspecialchars(pprint_port($natent['source']['port'])))?> <?php if (isset($alias['srcport'])): ?> @@ -370,7 +370,7 @@ foreach ($a_nat as $natent): <?php endif; ?> - <?=str_replace('_', ' ', htmlspecialchars(pprint_address($natent['destination'])))?> + <?=str_replace('_', '_<wbr>', htmlspecialchars(pprint_address($natent['destination'])))?> <?php if (isset($alias['dst'])): ?> @@ -387,7 +387,7 @@ foreach ($a_nat as $natent): <?php endif; ?> - <?=str_replace('_', ' ', htmlspecialchars(pprint_port($natent['destination']['port'])))?> + <?=str_replace('_', '_<wbr>', htmlspecialchars(pprint_port($natent['destination']['port'])))?> <?php if (isset($alias['dstport'])): ?> @@ -405,7 +405,7 @@ foreach ($a_nat as $natent): endif; ?> - <?=str_replace('_', ' ', htmlspecialchars($natent['target']))?> + <?=str_replace('_', '_<wbr>', htmlspecialchars($natent['target']))?> <?php if (isset($alias['target'])): ?> @@ -422,7 +422,7 @@ foreach ($a_nat as $natent): <?php endif; ?> - <?=str_replace('_', ' ', htmlspecialchars(pprint_port($localport)))?> + <?=str_replace('_', '_<wbr>', htmlspecialchars(pprint_port($localport)))?> <?php if (isset($alias['targetport'])): ?> |