98e2fac9c106d78051b1a318410bfa9c125d4320
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.
Description
My contributions to thephpleague/uri-src: 4 commits, 1 merged PRs
63 KiB
0 Stars
1 Watchers
0 Forks
Languages
PHP
100%