UTF-8 encoded characters

Created on 23 October 2024, about 1 month ago

Problem/Motivation

The method FlippyPager->flippy_generate_link() is using two PHP functions that does not support UTF-8 encoded characters: strlen() and substr().

Steps to reproduce

This is part of the code which generates a truncated label. I believe the problem can be seen when a long label is provided.

Proposed resolution

Replace the two functions (found on line 439 of src/FlippyPager.php) with mb_strlen() and mb_substr() respectively.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024