-
-
Notifications
You must be signed in to change notification settings - Fork 167
Add query parameters to ServerRequest
#180
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
Conversation
README.md
Outdated
| ``` | ||
|
|
||
| The response in the above example will return a response body with a link. | ||
| The URL contains query paramter `foo` with the value `bar`. |
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.
The URL contains the query parameter
README.md
Outdated
| $body .= '<a href="/?foo=bar">to use query parameter in your request</a>'; | ||
|
|
||
| if (isset($queryParams['foo'])) { | ||
| $body = 'The value of "foo" is: ' . $queryParams['foo']; |
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.
Nice XSS vector btw 😀
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.
Maybe we should add a note about it being a XSS vector, just to educate 😝
fc63393 to
55ce05f
Compare
|
Any chance to get this in? Looks straight forward? |
WyriHaximus
left a comment
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.
![]()
This ensures that the query parameters of the URI will be added to the
ServerRequest.Closes #178