[GH-ISSUE #1222] Addressfields with Multibyte Characters in Displayname are cutted #610

Closed
opened 2026-02-25 21:35:30 +03:00 by kerem · 3 comments
Owner

Originally created by @MatthiasDomroes on GitHub (Sep 5, 2024).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1222

Originally assigned to: @kambereBr on GitHub.

🐛 Bugreport

While processing Header-Field (e.g From) by using module/core/message_functions.php::process_address_fld($fld) address is cutted:
Raimund Matthias Domrös matthias@domroes.net
is converted to
Raimund Matthias Domrös matthias@domroes.ne
The last t is omitted!

Error is caused by function addr_split. The function is coded as iteration over bytes but mb_strlen (counts charactes!) is used to calculate $max (line 500) .

Version & Environment

Release 2.2.0 / file message_functions.php of master is unchanged.

Originally created by @MatthiasDomroes on GitHub (Sep 5, 2024). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1222 Originally assigned to: @kambereBr on GitHub. ## 🐛 Bugreport While processing Header-Field (e.g From) by using module/core/message_functions.php::process_address_fld($fld) address is cutted: Raimund Matthias Domrös <matthias@domroes.net> is converted to Raimund Matthias Domrös <matthias@domroes.ne> The last t is omitted! Error is caused by function addr_split. The function is coded as iteration over bytes but mb_strlen (counts charactes!) is used to calculate $max (line 500) . ### Version & Environment Release 2.2.0 / file message_functions.php of master is unchanged.
kerem 2026-02-25 21:35:30 +03:00
  • closed this issue
  • added the
    blocker
    label
Author
Owner

@marclaporte commented on GitHub (Sep 5, 2024):

Thank you @MatthiasDomroes

<!-- gh-comment-id:2332460623 --> @marclaporte commented on GitHub (Sep 5, 2024): Thank you @MatthiasDomroes
Author
Owner

@marclaporte commented on GitHub (Sep 6, 2024):

Perhaps related: https://github.com/cypht-org/cypht/issues/1224

<!-- gh-comment-id:2334667310 --> @marclaporte commented on GitHub (Sep 6, 2024): Perhaps related: https://github.com/cypht-org/cypht/issues/1224
Author
Owner

@kroky commented on GitHub (Sep 9, 2024):

Should be solved by https://github.com/cypht-org/cypht/pull/1230

<!-- gh-comment-id:2338085696 --> @kroky commented on GitHub (Sep 9, 2024): Should be solved by https://github.com/cypht-org/cypht/pull/1230
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#610
No description provided.