mirror of https://github.com/MISP/MISP
fix: [UI] uuid length for the display fixed
parent
160d7442ff
commit
22c413059f
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$uuidHalfWidth = 3;
|
||||
$shortUUID = sprintf('%s...%s', substr($uuid, 0, $uuidHalfWidth), substr($uuid, 30-$uuidHalfWidth, $uuidHalfWidth));
|
||||
$shortUUID = sprintf('%s...%s', substr($uuid, 0, $uuidHalfWidth), substr($uuid, 36-$uuidHalfWidth, $uuidHalfWidth));
|
||||
$notes = !empty($notes) ? $notes : [];
|
||||
$object_type = !empty($object_type) ? $object_type : null;
|
||||
echo sprintf('<span title="%s">%s</span>', $uuid, $shortUUID);
|
||||
|
|
Loading…
Reference in New Issue