Skip to content

Encode reserved characters in content paths - #809

Open
Bolt4243 wants to merge 1 commit into
github-tools:masterfrom
Bolt4243:fix/encode-content-paths
Open

Encode reserved characters in content paths#809
Bolt4243 wants to merge 1 commit into
github-tools:masterfrom
Bolt4243:fix/encode-content-paths

Conversation

@Bolt4243

@Bolt4243 Bolt4243 commented Sep 9, 2026

Copy link
Copy Markdown

Content paths were encoded with encodeURI, which leaves # and ? untouched. That made names such as docs/release#notes.md and reports/draft?.txt look like URL fragments or query strings instead of complete file paths.

Encode each path segment separately so directory slashes remain intact, and use the same path handling for reads, writes, and deletes. The focused offline harness fails on the base commit and passes with this fix. I also added Mocha/Nock regression cases, but did not run the full integration suite.

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