Repository navigation
Conversation
Signed-off-by: DavidCarliez <271374756+DavidCarliez@users.noreply.github.com>
steadytao
requested changes
Aug 24, 2026
steadytao
left a comment
Member
There was a problem hiding this comment.
Will review more thoroughly once the below is resolved.
Signed-off-by: DavidCarliez <271374756+DavidCarliez@users.noreply.github.com>
steadytao
requested changes
Aug 25, 2026
steadytao
left a comment
Member
There was a problem hiding this comment.
Windows can be configured with fsutil behavior allowextchar 1, allowing extended characters, including diacritics, in generated 8.3 names. This makes the new café~1.txt pass-through unsafe on those systems. We cannot treat every non-ASCII tilde-number shape as an ordinary long name. Please either fail closed for this shape or resolve actual aliases through an appropriate Windows API and apply the hide check to the resolved long path.
Signed-off-by: DavidCarliez <271374756+DavidCarliez@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Testing
go test -race -short ./...go build ./...go vet ./modules/caddyhttp/fileserverThe regression test confirms that a short-name parent component followed by a long filename is rejected with HTTP 400. It also confirms that an ordinary long tilde-containing filename remains accessible.
Assistance Disclosure
OpenAI Codex generated the implementation and tests under my direction. I reviewed the resulting patch and used Codex to run and verify the automated test suite. The associated security report was also AI-assisted.