Skip to content

chore: md serve realpath harden + v0.1.15 - #16

Merged
lidonggui merged 1 commit into
mainfrom
chore/md-serve-realpath-v0.1.15
Sep 22, 2026
Merged

lidonggui merged 1 commit into
mainfrom
chore/md-serve-realpath-v0.1.15

Conversation

@lidonggui

Copy link
Copy Markdown
Contributor

Summary

  • Harden resolveUnderRoot with fs.realpathSync.native (symlink file + symlink-dir → missing leaf rejected); keep .. / absolute checks.
  • startServe pins root via fs.realpath.
  • Bump to v0.1.15; README Status notes Phase 18 / md serve.

Test plan

  • pnpm verify (112 tests)
  • Smoke md serve fixtures after merge

resolveUnderRoot uses fs.realpathSync.native so symlink escapes outside
the served root are rejected; startServe pins root via realpath.
@lidonggui
lidonggui merged commit 08cb754 into main Sep 22, 2026
1 check passed
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