-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix(fastify): Server not handling periods in query params #9714
fix(fastify): Server not handling periods in query params #9714
Conversation
Thanks a lot for your PR @hawkk9 🙂 Could you please take a look at the automatic review comments you got and try to fix that warning? Thanks! |
@Tobbe |
Thanks @hawkk9 I should have asked this too in my original comment, but would it be possible to add some tests for this? I'm not super familiar with this code. Some tests would make me feel more comfortable merging this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @hawkk9! I took the liberty of getting this one over the finish line since I was familiar with the tests for these packages and knew that the code here was duplicated in a few places.
Fix for this issue. #9663 If the query parameter contains`. `will result in a 404 error when routing to the defined route. Example.) http://localhost:8910/posts?redirect_url=https%3A%2F%2Fwww.google.com - Version: 6.3.3 or higher - When the application is running with `yarn rw serve` command. - Version: 6.3.2 or lower - When the application is running with `yarn rw dev` command. --------- Co-authored-by: yuichi.nishitani <hawkk9.public@gmail.com> Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
What does this PR do?
Fix for this issue.
#9663
If the query parameter contains
.
will result in a 404 error when routing to the defined route.Example.)
http://localhost:8910/posts?redirect_url=https%3A%2F%2Fwww.google.com
The problem occurs
yarn rw serve
command.The problem not occurs
yarn rw dev
command.