Skip to content

fix: fix isSafePath regex#48

Open
bartolomeooo wants to merge 1 commit intogajus:mainfrom
bartolomeooo:fix-safe-path-regex
Open

fix: fix isSafePath regex#48
bartolomeooo wants to merge 1 commit intogajus:mainfrom
bartolomeooo:fix-safe-path-regex

Conversation

@bartolomeooo
Copy link
Contributor

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

Copy link

@mohosy mohosy left a comment

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
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
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.

2 participants