Skip to content

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

3 participants