Skip to content

Commit

Permalink
using truncate function
Browse files Browse the repository at this point in the history
  • Loading branch information
ssteeltm committed May 17, 2024
1 parent aef2cde commit 4782892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client_logins.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
if (strlen($login_uri) > $login_uri_display_size) {
$login_uri_display_ellipsis = "...";
}
$login_uri_display = substr($login_uri, 0, 35) . "$login_uri_display_ellipsis<button class='btn btn-sm clipboardjs' type='button' data-clipboard-text='$login_uri'><i class='far fa-copy text-secondary'></i></button>";
$login_uri_display = truncate($login_uri,40) . "<button class='btn btn-sm clipboardjs' type='button' data-clipboard-text='$login_uri'><i class='far fa-copy text-secondary'></i></button>";
}
$login_uri_2 = nullable_htmlentities($row['login_uri_2']);
$login_username = nullable_htmlentities(decryptLoginEntry($row['login_username']));
Expand Down

0 comments on commit 4782892

Please sign in to comment.