Merge pull request #1164 from librenms/revert-1162-truncate-utf8

Revert "Fixed issue when truncating UTF-8 strings."
This commit is contained in:
Neil Lathwood
2015-05-30 03:43:18 +01:00

View File

@@ -155,7 +155,7 @@ foreach (dbFetchRows($sql, $param) as $device) {
$hostname = generate_device_link($device);
$platform = $device['hardware'] . '<br />' . $device['features'];
$os = $device['os_text'] . '<br />' . $device['version'];
$uptime = formatUptime($device['uptime'], 'short') . '<br />' . mb_substr($device['location'], 0, 32, 'utf8');
$uptime = formatUptime($device['uptime'], 'short') . '<br />' . truncate($device['location'],32, '');
if ($subformat == "detail") {
$hostname .= '<br />' . $device['sysName'];
if ($port_count) {