Commit Graph
3 Commits
Author SHA1 Message Date
upstream cb44762108 Upstream thephpleague/uri-src state of the touched files before 6b1d90a020 2026-09-04 08:43:47 +02:00
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
upstream 2c92ab421c Upstream thephpleague/uri-src state of the touched files before 11370c055f 2026-09-04 08:23:31 +02:00