mirror of
https://github.com/librenms/librenms.git
synced 2024-09-24 03:48:54 +00:00
Merge pull request #1162 from SaaldjorMike/truncate-utf8
Fixed issue when truncating UTF-8 strings.
This commit is contained in:
commit
91107b9968
@ -155,7 +155,7 @@ foreach (dbFetchRows($sql, $param) as $device) {
|
|||||||
$hostname = generate_device_link($device);
|
$hostname = generate_device_link($device);
|
||||||
$platform = $device['hardware'] . '<br />' . $device['features'];
|
$platform = $device['hardware'] . '<br />' . $device['features'];
|
||||||
$os = $device['os_text'] . '<br />' . $device['version'];
|
$os = $device['os_text'] . '<br />' . $device['version'];
|
||||||
$uptime = formatUptime($device['uptime'], 'short') . '<br />' . truncate($device['location'],32, '');
|
$uptime = formatUptime($device['uptime'], 'short') . '<br />' . mb_substr($device['location'], 0, 32, 'utf8');
|
||||||
if ($subformat == "detail") {
|
if ($subformat == "detail") {
|
||||||
$hostname .= '<br />' . $device['sysName'];
|
$hostname .= '<br />' . $device['sysName'];
|
||||||
if ($port_count) {
|
if ($port_count) {
|
||||||
|
Loading…
Reference in New Issue
Block a user