summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-10 16:22:05 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-10 16:22:05 -0500
commit4b72f68fd9fa2c33d34efafc23f31a374f1a6a5a (patch)
treeb9577b5ba78c1667fdd52c3ee86805a016fe6fa4 /src/usr/local/www/firewall_nat.php
parent8b2cb5a45c9a815382acd634189a5c8090c4c0ff (diff)
downloadpfsense-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.php12
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'])):
?>
OpenPOWER on IntegriCloud