Skip to content

Add logic to block path traversal in static files - #35

Merged
scranford1 merged 2 commits into
developfrom
feature/path-traversal
Jun 25, 2026
Merged

scranford1 merged 2 commits into
developfrom
feature/path-traversal

Conversation

@scranford1

Copy link
Copy Markdown
Contributor

Check for path traversals and only allow safe paths.

@scranford1
scranford1 requested a review from jdw-creare June 24, 2026 18:55

@jdw-creare jdw-creare left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks great! I wonder if we should add a comment around the call to safe_join just mentioning what it does? It's also covered in safe_join's documentation so it's not really a big deal either way.

@scranford1

Copy link
Copy Markdown
Contributor Author

This looks great! I wonder if we should add a comment around the call to safe_join just mentioning what it does? It's also covered in safe_join's documentation so it's not really a big deal either way.

Sounds good, I added a comment to explain why it is being used.

@sonarqubecloud

Copy link
Copy Markdown

@scranford1
scranford1 merged commit 350f111 into develop Jun 25, 2026
5 checks passed
@scranford1
scranford1 deleted the feature/path-traversal branch June 25, 2026 15:47
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