Skip to content
Snippets Groups Projects
Commit d52baab2 authored by Benni Mack's avatar Benni Mack Committed by Benjamin Franzke
Browse files

[BUGFIX] Do not emit redirect() via PHP but via PSR-7

In order to allow further manipulation of Response objects,
using "throw new ImmediateResponseException" is much
more flexible than calling HttpUtility::redirect() which immediately
stops the PHP process. This way, it is not even possible
for developers to manipulate the response, or even
test this behavior in functional tests with TYPO3 Core.

The change removes all usages of HttpUtility::redirect().
The method will be deprecated at a later stage.

Resolves: #93004
Releases: master
Change-Id: I9bd0db2b2ee0c15b39b38168d67e6d78ba4be2db
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67038


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarDaniel Gorges <daniel.gorges@b13.com>
Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarDaniel Gorges <daniel.gorges@b13.com>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
parent 9b5c52be
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment