Skip to content

Comments

fix: replace substr with mb_substr for user agent encoding#58703

Merged
taylorotwell merged 1 commit intolaravel:12.xfrom
deplox:12.x-mb_substr
Feb 9, 2026
Merged

fix: replace substr with mb_substr for user agent encoding#58703
taylorotwell merged 1 commit intolaravel:12.xfrom
deplox:12.x-mb_substr

Conversation

@jonagoldman
Copy link
Contributor

The substr() could produce invalid UTF-8. Using mb_substr() instead of substr() on a UTF-8 string is better.

@taylorotwell taylorotwell merged commit cc1ceab into laravel:12.x Feb 9, 2026
72 checks passed
@jonagoldman jonagoldman deleted the 12.x-mb_substr branch February 15, 2026 23:50
@jonagoldman jonagoldman restored the 12.x-mb_substr branch February 15, 2026 23:50
@jonagoldman jonagoldman deleted the 12.x-mb_substr branch February 15, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants