Parse error messages embedded the entire first line of a value, so a single malformed escape could copy a neighbouring secret verbatim into logs; the context is now capped at eighty bytes without splitting a UTF-8 character, using plain byte operations so the formatter cannot call an mbstring function the polyfill does not provide, and control bytes in the reported context are escaped so log lines stay printable. A malformed pattern passed to allowedRegexValues reported every value as a mismatch instead of the compile failure, the empty-file-path message blamed the path when the names list was empty, and the repository builder's error text and doc comments were inaccurate; these are corrected. Encoding names are now matched case-insensitively and through their aliases. A new tests workflow job runs the suite with the mbstring functions the polyfill does not implement disabled, so any future use of one fails in CI rather than only on installs that rely on the polyfill. This is stacked on #606.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parse error messages embedded the entire first line of a value, so a single malformed escape could copy a neighbouring secret verbatim into logs; the context is now capped at eighty bytes without splitting a UTF-8 character, using plain byte operations so the formatter cannot call an mbstring function the polyfill does not provide, and control bytes in the reported context are escaped so log lines stay printable. A malformed pattern passed to allowedRegexValues reported every value as a mismatch instead of the compile failure, the empty-file-path message blamed the path when the names list was empty, and the repository builder's error text and doc comments were inaccurate; these are corrected. Encoding names are now matched case-insensitively and through their aliases. A new tests workflow job runs the suite with the mbstring functions the polyfill does not implement disabled, so any future use of one fails in CI rather than only on installs that rely on the polyfill. This is stacked on #606.