dualfroz c0b6c4bc5f fix: truncate URI Template prefix modifier by character, not byte
Operator::inject() applied the ":N" prefix modifier with the
byte-oriented substr(), splitting multibyte UTF-8 characters in half
and producing invalid percent-encoded output (e.g. the euro sign
truncated to its first byte only).

RFC 6570 Section 2.4.1 defines the prefix length as a count of
characters, so use mb_substr() with an explicit UTF-8 encoding
instead. ext-mbstring is already a hard dependency of this package.
2026-09-04 08:23:31 +02:00
S
Description
My contributions to thephpleague/uri-src: 4 commits, 1 merged PRs
63 KiB
0 Stars 1 Watchers 0 Forks
Languages
PHP 100%