Skip to content

Commit

Permalink
[BUGFIX] Ensure Uri->getQuery() always returns a string
Browse files Browse the repository at this point in the history
As stated in the Interface:
If no query string is present, this method MUST return an empty string.

Resolves: #86520
Releases: master, 8.7
Change-Id: I9869af08c84262443e503c34a2c608fbc5ba4bc2
Reviewed-on: https://review.typo3.org/58538
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
  • Loading branch information
ervaude authored and liayn committed Oct 1, 2018
1 parent 7c17361 commit 7475663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/core/Classes/Http/Uri.php
Expand Up @@ -87,7 +87,7 @@ class Uri implements UriInterface
* The query part of the URI without the ?
* @var string
*/
protected $query;
protected $query = '';

/**
* The fragment part of the URI without the # before
Expand Down

0 comments on commit 7475663

Please sign in to comment.