Skip to content

Conversation

@legionth
Copy link
Contributor

This ensures that the query parameters of the URI will be added to the ServerRequest.

Closes #178

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`.
Copy link
Member

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'];
Copy link
Member

Choose a reason for hiding this comment

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

Nice XSS vector btw 😀

Copy link
Member

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 😝

@clue clue added this to the v0.7.0 milestone May 2, 2017
@legionth legionth force-pushed the query-parameters branch from 55ce05f to aee0851 Compare May 4, 2017 13:47
@andig
Copy link
Contributor

andig commented May 5, 2017

Any chance to get this in? Looks straight forward?

Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

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

:shipit:

@WyriHaximus WyriHaximus merged commit a6596b4 into reactphp:master May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants