Skip to content

fix: update path matching regex to be stricter to ensure no history leakage#839

Merged
tjholm merged 2 commits intonitrictech:mainfrom
HomelessDinosaur:history-matching
Jan 8, 2025
Merged

fix: update path matching regex to be stricter to ensure no history leakage#839
tjholm merged 2 commits intonitrictech:mainfrom
HomelessDinosaur:history-matching

Conversation

@HomelessDinosaur
Copy link
Member

Tested using the following paths:

/
/user
/user/{name}
/user/{name}/images
/user/{name}/images/{id}

Correctly associated each history path to belong to the correct API route. For reference: the regex looks like ^\/user\/[^/]+$ for a path to match for /user/{name}.

Co-authored-by: David Moore <4121492+davemooreuws@users.noreply.github.com>
@tjholm tjholm merged commit 3826f1b into nitrictech:main Jan 8, 2025
5 checks passed
@nitric-bot
Copy link
Contributor

🎉 This PR is included in version 1.56.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants