Pending

User tests: Successful: Unsuccessful:

avatar Suyash2JZ
Suyash2JZ
8 Oct 2025

Fix: use UTF-8 safe substr for multibyte support in mod_articles_category
Fixes #45452

Summary of Changes

Replaced the regular substr() function with mb_substr() in mod_articles_category to ensure correct multibyte string handling for UTF-8 encoded text.

Testing Instructions

  1. Create or open a Joomla site with multibyte characters (e.g., accented or non-Latin characters) in article titles or categories.
  2. Display those articles using the "Articles - Category" module.
  3. Verify that the trimming and display of multibyte titles is now correct.

Actual result BEFORE applying this Pull Request

Multibyte characters were sometimes cut off or displayed incorrectly.

Expected result AFTER applying this Pull Request

Multibyte characters are displayed correctly and not truncated.

Link to documentations

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar Suyash2JZ Suyash2JZ - open - 8 Oct 2025
avatar Suyash2JZ Suyash2JZ - change - 8 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Oct 2025
Category Modules Front End

Add a Comment

Login with GitHub to post a comment