vezel-dev / celerity

An expressive programming language for writing concurrent and maintainable software.
https://docs.vezel.dev/celerity
BSD Zero Clause License
10 stars 2 forks source link

Project and workspace APIs should reject paths with `.` or `..` segments #80

Open alexrp opened 1 year ago

alexrp commented 1 year ago

https://github.com/vezel-dev/celerity/blob/29063c14905e4f9ce28e801d9a705cc2db4c80f8/src/language/tooling/Projects/ProjectConfiguration.cs#L86-L99

https://github.com/vezel-dev/celerity/blob/29063c14905e4f9ce28e801d9a705cc2db4c80f8/src/language/tooling/Projects/ProjectConfiguration.cs#L101-L130

https://github.com/vezel-dev/celerity/blob/29063c14905e4f9ce28e801d9a705cc2db4c80f8/src/language/tooling/Workspaces/WorkspaceWatcher.cs#L14-L20

alexrp commented 1 year ago

This is trivial enough on Unix, I think. I just don't know if Windows (with its insane complexity around paths) has any gotchas here...