Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compile-time validation of literal paths containing ".." #329

Merged
merged 8 commits into from
Nov 12, 2024

Conversation

pawelsadlo
Copy link
Contributor

@pawelsadlo pawelsadlo commented Nov 2, 2024

Addresses #327

This PR adds additional validation of literal path segments containing ...

It throws compiletime error, suggesting canonical form of a path, when literal path is not canonical.

Eg. "../foo/../bar" suggests "../bar"

"foo/.." suggests removing literal

@pawelsadlo pawelsadlo marked this pull request as ready for review November 6, 2024 12:32
@pawelsadlo pawelsadlo changed the title Reducing ups Add compile-time validation of literal paths containing ".." Nov 6, 2024
@lihaoyi lihaoyi merged commit 8d4bf10 into com-lihaoyi:main Nov 12, 2024
8 checks passed
@lihaoyi
Copy link
Member

lihaoyi commented Nov 12, 2024

Thanks @pawelsadlo !

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