Skip to content

make better channel names as they result in being filenames#5

Open
usuallyarnav wants to merge 1 commit into
keepsloading:mainfrom
usuallyarnav:sanitize-memory-filenames
Open

make better channel names as they result in being filenames#5
usuallyarnav wants to merge 1 commit into
keepsloading:mainfrom
usuallyarnav:sanitize-memory-filenames

Conversation

@usuallyarnav

Copy link
Copy Markdown
Contributor

Discord channel names are controlled by us and currently flow directly into memory/ name .md, so names containing path separators or ".." can escape the directory or crash the write. _safe_name whitelists and some other things ig

Please see the markdown to DB read path in "sync_markdown_files "still matches raw DB names against filenames. Since cleaining is lossy, fully reconciling that lookup is a follow-up — this PR focuses on closing the write-side path-traversal vector. Is the markdown→DB sync direction something people actually edit by hand, or is the DB the source of truth? That's for the maintainer to answer , should this be raised as an issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant