Skip to content

fix: fix isSafePath regex#48

Merged
gajus merged 1 commit into
gajus:mainfrom
bartolomeooo:fix-safe-path-regex
Jun 11, 2026
Merged

fix: fix isSafePath regex#48
gajus merged 1 commit into
gajus:mainfrom
bartolomeooo:fix-safe-path-regex

Conversation

@bartolomeooo

Copy link
Copy Markdown
Contributor

Replaced \0 with 0 to accept .0 and reject paths containing null bytes.

@mohosy mohosy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review note on 'fix: fix isSafePath regex': changedFiles=2, additions=3, deletions=1.\n\nPlease verify tests cover boundary/error cases for modified components and confirm no regressions in adjacent flows.

@bartolomeooo

Copy link
Copy Markdown
Contributor Author

I added two relevant test cases that cover the change. All existing tests pass as well, so there should be no regressions.

Could you clarify which boundary or error cases you think might be missing?

@bartolomeooo bartolomeooo requested a review from mohosy February 28, 2026 22:37
@gajus gajus merged commit de75d93 into gajus:main Jun 11, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 3.8.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants