Replaced some string functions to mbstring alternatives (#1735)

* Replaced some string functions to mbstring alternatives

* Update CHANGELOG.md

* Update admin_attach_cp.php

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2025-01-05 14:42:03 +07:00 committed by GitHub
commit e75d2859c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 7 deletions

View file

@ -422,11 +422,7 @@ if ($view === 'attachments') {
$row = DB()->sql_fetchrow($result);
DB()->sql_freeresult($result);
$post_title = $row['topic_title'];
if (strlen($post_title) > 32) {
$post_title = str_short($post_title, 30);
}
$post_title = str_short($row['topic_title'], 30);
$view_topic = BB_ROOT . POST_URL . $ids[$j]['post_id'] . '#' . $ids[$j]['post_id'];