summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-03-07 15:01:57 -0300
committerRenato Botelho <renato@netgate.com>2017-03-07 15:01:57 -0300
commita095b039a224177db47e890671b2e1dc54895ff7 (patch)
tree9eb3641c9e712c81235f30999eefb9548ca04d8f /src/usr/local
parent3aa941d0c2ddd70591224b502b8473dc65a27c45 (diff)
parent81b1b44ad7e4d7abc635b08533359b9df45b54b2 (diff)
downloadpfsense-a095b039a224177db47e890671b2e1dc54895ff7.zip
pfsense-a095b039a224177db47e890671b2e1dc54895ff7.tar.gz
Merge pull request #3574 from phil-davis/wrap-host-domain-names
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/guiconfig.inc4
-rw-r--r--src/usr/local/www/services_dyndns.php2
-rw-r--r--src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc
index 2fa69fe..433b3b6 100644
--- a/src/usr/local/www/guiconfig.inc
+++ b/src/usr/local/www/guiconfig.inc
@@ -439,6 +439,10 @@ function pprint_port($port) {
return $pport;
}
+function insert_word_breaks_in_domain_name($domain_name) {
+ return str_replace('.', '<wbr>.', $domain_name);
+}
+
function firewall_check_for_advanced_options(&$item) {
$item_set = "";
if ($item['os']) {
diff --git a/src/usr/local/www/services_dyndns.php b/src/usr/local/www/services_dyndns.php
index d941732..e962289 100644
--- a/src/usr/local/www/services_dyndns.php
+++ b/src/usr/local/www/services_dyndns.php
@@ -144,7 +144,7 @@ foreach ($a_dyndns as $dyndns):
</td>
<td>
<?php
- print(htmlspecialchars($hostname));
+ print(insert_word_breaks_in_domain_name(htmlspecialchars($hostname)));
?>
</td>
<td>
diff --git a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php
index 3f6c530..6e90d4e 100644
--- a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php
+++ b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php
@@ -197,7 +197,7 @@ function get_dyndns_service_text($dyndns_type) {
<?=htmlspecialchars(get_dyndns_service_text($dyndns['type']));?>
</td>
<td>
- <?=htmlspecialchars(get_dyndns_hostname_text($dyndns));?>
+ <?=insert_word_breaks_in_domain_name(htmlspecialchars(get_dyndns_hostname_text($dyndns)));?>
</td>
<td>
<div id="dyndnsstatus<?= $rowid;?>"><?= gettext("Checking ...");?></div>
OpenPOWER on IntegriCloud