aboutsummaryrefslogtreecommitdiff
path: root/scripts/setup-telega.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-23 19:21:31 -0500
committerCraig Jennings <c@cjennings.net>2026-05-23 19:21:31 -0500
commita62d9c19d0265fa7a16a7b2227c557638abb6ea0 (patch)
tree0fb48364f43d8c4f36557f0499e4058473923dbc /scripts/setup-telega.sh
parent9d5d22bfceebf11c0416953e8c615b046b7b4360 (diff)
downloaddotemacs-a62d9c19d0265fa7a16a7b2227c557638abb6ea0.tar.gz
dotemacs-a62d9c19d0265fa7a16a7b2227c557638abb6ea0.zip
fix(dwim-shell): quote and validate user-controlled shell inputs
Several dwim-shell commands interpolated user-controlled strings straight into shell templates, so a value with spaces, quotes, or shell metacharacters could break out of the command. The worst was git-clone-clipboard-url, which dropped raw clipboard contents into "git clone <<cb>>". I added three pure validators (git URL, ffmpeg timestamp, rename prefix) and fixed the interpolation sites. git-clone now validates the clipboard and passes the URL through shell-quote-argument instead of <<cb>>. The GPG recipient and the 7z archive name go through shell-quote-argument instead of hand-written single quotes. The thumbnail timestamp and the rename prefix are validated to a safe shape before they reach the command, so the unquoted interpolation that remains is constrained to digits, colons, and filename-safe characters. The fifth case in the ticket, the video-concat filelist built with echo/tr/sed, is a redesign rather than a quoting fix and is filed as a follow-up.
Diffstat (limited to 'scripts/setup-telega.sh')
0 files changed, 0 insertions, 0 deletions