Revision b77ddf68
Added by Phil Davis over 8 years ago
src/usr/local/www/guiconfig.inc | ||
---|---|---|
430 | 430 |
return $pport; |
431 | 431 |
} |
432 | 432 |
|
433 |
function insert_word_breaks_in_domain_name($domain_name) { |
|
434 |
return str_replace('.', '.<wbr>', $domain_name); |
|
435 |
} |
|
436 |
|
|
433 | 437 |
function firewall_check_for_advanced_options(&$item) { |
434 | 438 |
$item_set = ""; |
435 | 439 |
if ($item['os']) { |
src/usr/local/www/services_dyndns.php | ||
---|---|---|
173 | 173 |
</td> |
174 | 174 |
<td> |
175 | 175 |
<?php |
176 |
print(htmlspecialchars($hostname));
|
|
176 |
print(insert_word_breaks_in_domain_name(htmlspecialchars($hostname)));
|
|
177 | 177 |
?> |
178 | 178 |
</td> |
179 | 179 |
<td> |
src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php | ||
---|---|---|
229 | 229 |
<?=htmlspecialchars(get_dyndns_service_text($dyndns['type']));?> |
230 | 230 |
</td> |
231 | 231 |
<td> |
232 |
<?=htmlspecialchars(get_dyndns_hostname_text($dyndns));?>
|
|
232 |
<?=insert_word_breaks_in_domain_name(htmlspecialchars(get_dyndns_hostname_text($dyndns)));?>
|
|
233 | 233 |
</td> |
234 | 234 |
<td> |
235 | 235 |
<div id="dyndnsstatus<?= $rowid;?>"><?= gettext("Checking ...");?></div> |
Also available in: Unified diff
Redmine #7301 Provide word-break opportunity for dynamic DNS host names
Signed-off-by: Phil Davis <phil.davis@inf.org>
(cherry picked from commit 138e79d42cb1771e3b8fcc727270187f5c7ee7db)