8000 bug #81 Don't normalize query string in PsrHttpFactory (nicolas-grekas) · symfony/symfony@e44f249 · GitHub
[go: up one dir, main page]

Skip to content

Commit e44f249

Browse files
bug #81 Don't normalize query string in PsrHttpFactory (nicolas-grekas)
This PR was merged into the 2.0-dev branch. Discussion ---------- Don't normalize query string in PsrHttpFactory Fix #80 Commits ------- bc25829 Don't normalize query string in PsrHttpFactory
2 parents df735ec + bc25829 commit e44f249

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGELOG
22
=========
33

4+
# 2.0.1 (2020-06-25)
5+
6+
* Don't normalize query string in PsrHttpFactory
7+
* Fix conversion for HTTPS requests
8+
* Fix populating default port and headers in HttpFoundationFactory
9+
410
# 2.0.0 (2020-01-02)
511

612
* Remove DiactorosFactory

Factory/PsrHttpFactory.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ public function __construct(ServerRequestFactoryInterface $serverRequestFactory,
4848
*/
4949
public function createRequest(Request $symfonyRequest)
5050
{
51+
$uri = $symfonyRequest->server->get('QUERY_STRING', '');
52+
$uri = $symfonyRequest->getSchemeAndHttpHost().$symfonyRequest->getBaseUrl().$symfonyRequest->getPathInfo().('' !== $uri ? '?'.$uri : '');
53+
5154
$request = $this->serverRequestFactory->createServerRequest(
5255
$symfonyRequest->getMethod(),
53-
$symfonyRequest->getUri(),
56+
$uri,
5457
$symfonyRequest->server->all()
5558
);
5659

0 commit comments

Comments
 (0)
0