Fixed $speed lenght in port parser when > 32 characters (#9479)

This commit is contained in:
TheGreatDoc 2018-11-27 17:11:58 +01:00 committed by Tony Murray
parent 36ea8a043e
commit 4ed9424390

View File

@ -16,7 +16,7 @@ if ($type && $descr) {
$port_ifAlias['type'] = $type;
$port_ifAlias['descr'] = $descr;
$port_ifAlias['circuit'] = $circuit;
$port_ifAlias['speed'] = $speed;
$port_ifAlias['speed'] = substr($speed, 0, 32);
$port_ifAlias['notes'] = $notes;
d_echo($port_ifAlias);