diff options
| author | Kenneth Lien <kenneth@anthropic.com> | 2026-03-20 11:56:57 -0700 |
|---|---|---|
| committer | Kenneth Lien <kenneth@anthropic.com> | 2026-03-20 11:56:57 -0700 |
| commit | 1636fedbd46691ece874fcf7425e2178da47ddc5 (patch) | |
| tree | e0d3b3184e115adec5e60caacdb2404018aee248 /plugins | |
| parent | a9bc23da6f263eddd73379c764b5dba091be29ba (diff) | |
Sanitize user-controlled filenames and download path componentskenneth/telegram-all-file-types
- safeName() strips <>[]\r\n; from file_name/title before they hit the
<channel> notification — delimiter chars would let an uploader break
out of the tag or forge meta entries
- download_attachment strips ext/uniqueId to alphanumeric before join()
— defense-in-depth against path traversal (file_unique_id is
Telegram-controlled so this is belt-and-braces)
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions
