fix: close Ticket 11 hardening review gaps

This commit is contained in:
proxyctl coordinator
2026-07-18 02:04:26 +08:00
parent f15ffc2301
commit ed8b527f1f
15 changed files with 1045 additions and 175 deletions
+3
View File
@@ -45,6 +45,9 @@ func (p *profilePickerState) close() {
}
func (p *profilePickerState) update(key tea.KeyMsg, snapshot app.Snapshot) tea.Cmd {
if key.Type == tea.KeyRunes {
key.Runes = []rune(sanitizeUntrustedControls(string(key.Runes)))
}
switch key.String() {
case "up", "ctrl+p":
p.move(snapshot, -1)