Skip to content

Commit bdea26a

Browse files
committed
Fix packet index printing of packet label
1 parent 3d61b60 commit bdea26a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/Packet/Index.phtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ require('./header.inc.phtml'); ?>
7474
$tpl_packet_flags = ob_get_clean();
7575
if (!empty($tpl_packet_flags)) $tpl_packet_flags = ' ' . $tpl_packet_flags; ?>
7676
<tr>
77-
<td><strong><a href="<?=$packet->getURI()?>"><?=filter_var($packet->getName(), FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></a></strong><?=$tpl_packet_flags?><br/><span class="text-muted"><?=rtrim(Common::stripUpTo(Common::stripUpTo(trim(filter_var($packet->getRemarks(true), FILTER_SANITIZE_STRING)), "\n", 128), '. ', 128), '.')?></span></td>
77+
<td><strong><a href="<?=$packet->getURI()?>"><?=filter_var($packet->getLabel(), FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></a></strong><?=$tpl_packet_flags?><br/><span class="text-muted"><?=rtrim(Common::stripUpTo(Common::stripUpTo(trim(filter_var($packet->getRemarks(true), FILTER_SANITIZE_STRING)), "\n", 128), '. ', 128), '.')?></span></td>
7878
<td><? if ($user) { ?><a href="<? echo $user_url; ?>"><img class="avatar" src="<? echo $avatar_url; ?>"/>&nbsp;<? echo filter_var($user->getName(), FILTER_SANITIZE_STRING); ?></a><? } else { ?>Anonymous<? } ?></td>
7979
</tr>
8080
<? } ?>

0 commit comments

Comments
 (0)