Skip to content

tool_getparam: warn on all unicode 0xe2 0x80 + x80-0xff prefixes - #18459

Closed
bagder wants to merge 3 commits into
masterfrom
bagder/spot-more-unicode
Closed

tool_getparam: warn on all unicode 0xe2 0x80 + x80-0xff prefixes#18459
bagder wants to merge 3 commits into
masterfrom
bagder/spot-more-unicode

Conversation

@bagder

@bagder bagder commented Sep 3, 2025

Copy link
Copy Markdown
Member

If a string argument is expected and the first two bytes are 0xe2 ex80 and the third has the 7th bit set, that's enough for curl to warn.

Previously we tried to detect and warn only for the unicode double quote, but users might use single quotes, other quotes or even lead the argument with one of the "zero widths" characters. This is an attempt to detect many of those. Without triggering for "normal" IDN hostnames.

If a string argument is expected and the first two bytes are 0xe2 ex80
that's enough for curl to warn.

Previously we tried to detect and warn only for the unicode double
quote, but users might use single quotes, other quotes or even lead the
argument with one of the "zero widths" characters. This is an attempt to
detect many of those. Without triggering for "normal" IDN hostnames.
@github-actions github-actions Bot added the tests label Sep 3, 2025
@bagder bagder changed the title tool_getparam: warn on all unicode 0xe2 0x80 prefixes tool_getparam: warn on all unicode 0xe2 0x80 + x80-0xff prefixes Sep 3, 2025
@bagder
bagder marked this pull request as ready for review September 3, 2025 09:16
@bagder bagder closed this in 765b5ab Sep 3, 2025
@bagder
bagder deleted the bagder/spot-more-unicode branch September 3, 2025 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant