Repository navigation
Refuse font names that inject terminal config - #10804
Closed
chessing234 wants to merge 6 commits into
Closed
chessing234 wants to merge 6 commits into
chessing234 wants to merge 6 commits into
Conversation
A quoted family closed the Alacritty/Ghostty string and could inject a second setting. Foot sed was unescaped the same way.
Those break sed and expand in double-quoted rewrites the same way quotes do.
Otherwise those cases fail at the missing-font check and never hit the metacharacter guard.
A newline in the family never needs a fontconfig lookup, and the test must not depend on grep -F matching across two output lines.
1 of 3 tasks
chessing234
added a commit
to chessing234/omarchy
that referenced
this pull request
Sep 16, 2026
…family lookup Fold omacom#10285 and omacom#10804 into the omacom#10811 branch so one PR covers escaping, injection refusal, and family-scoped font lookup.
3 tasks
Contributor
Author
|
folded into #10811. |
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
omarchy-font-setinterpolated the family into Alacritty, Ghostty, Foot, and Kitty with almost no escaping (Kitty only escaped\\&/).$, or XML metacharacters can close those rewrites and inject a second setting.fc-list, and the remaining names are sed-escaped for every terminal rewrite.This does not change
fonts.conf; that XML path is already covered elsewhere.Test plan
test/shell.d/font-set-terminal-injection-test.sh(GNU sed / Arch)omarchy-font-set 'Evil"; command = "id'is refused and configs are unchanged