fzf-tmux: validate attached layout size value
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Attached option form (e.g. -l50) captured size via ${arg:2} with no validation, unlike the separate-argument form. For -l/-u the value reached $((...)) arithmetic, where a[$(cmd)] runs cmd during option parsing, before any tmux check. Same value was also expanded unquoted into `tmux popup ... $opt`, allowing tmux flag injection. Apply the separate-form regex to the attached form too. Rejects the array-subscript payload and space-bearing geometry values that enabled flag injection.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Reported-by: sb24CK (https://github.com/sb24CK)
Diff stats
2 files+3 added−0 removed
- other:+3 added−0 removed