in reply to daniel:// stenberg://

hmm, I think this CVE fix may have broken my use of ~/.netrc with the GitHub REST API. Ran into an issue where my normal usage pattern of curl, which includes a "netrc-optional" entry in ~/.curlrc and a GitHub personal access token in ~/.netrc, no longer adds an "Authorization: ..." header to my requests, correlated in time with installing curl 8.11.1 via homebrew.

I'll see if I can produce a properly reduced test case and bisect down to one commit.

in reply to daniel:// stenberg://

Issue filed with a reduced replication test!

github.com/curl/curl/issues/15…

While developing that test I discovered an interesting factor: the bug seems to only be triggered in combination with the `--netrc-optional` option, notwithstanding whether that option is passed directly on the command line or whether it appears in `~/.curlrc`.

I wish I could have strace'd into exactly what's happening at file parse time. Hopefully this is useful enough!