Be more strict about what names and titles we allow and reject them

immediately when possible, but allow # again for those directly set by
commands (but not escape sequences). From Barrett Ruth in GitHub issue
5175.
This commit is contained in:
nicm
2026-06-15 21:41:39 +00:00
committed by Nicholas Marriott
parent 762e503978
commit 64e83caf04
17 changed files with 146 additions and 82 deletions

View File

@@ -116,7 +116,6 @@ session_create(const char *prefix, const char *name, const char *cwd,
s = xcalloc(1, sizeof *s);
s->references = 1;
s->flags = 0;
s->cwd = xstrdup(cwd);
TAILQ_INIT(&s->lastw);