From 134ef3090bc08afc2826effeead1553ea79e1538 Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Fri, 29 May 2015 15:24:49 +0200 Subject: [PATCH] Fixed issue when truncating UTF-8 strings. --- html/includes/table/devices.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/table/devices.inc.php b/html/includes/table/devices.inc.php index 02c2b925e0..83dd18b284 100644 --- a/html/includes/table/devices.inc.php +++ b/html/includes/table/devices.inc.php @@ -155,7 +155,7 @@ foreach (dbFetchRows($sql, $param) as $device) { $hostname = generate_device_link($device); $platform = $device['hardware'] . '
' . $device['features']; $os = $device['os_text'] . '
' . $device['version']; - $uptime = formatUptime($device['uptime'], 'short') . '
' . truncate($device['location'],32, ''); + $uptime = formatUptime($device['uptime'], 'short') . '
' . mb_substr($device['location'], 0, 32, 'utf8'); if ($subformat == "detail") { $hostname .= '
' . $device['sysName']; if ($port_count) {