Skip to content
Snippets Groups Projects
Commit 8d52092a authored by Torben Hansen's avatar Torben Hansen Committed by Benni Mack
Browse files

[TASK] Optimize referer evaluation in ext:felogin


The redirect evaluation is currently always processed no matter if
a `redirectMode` based on the referer is configured or not. Also, given
referers are checked for validity using `RedirectUrlValidator`, which
logs a message in the TYPO3 log with the log level `warning` if the given
URL is considered as invalid.

This patch adds a check to the referer evaluation, so it is only processed,
if a redirect mode supporting the referer is active. Additionally, the log
level for invalid redirect URLs in `RedirectUrlValidator` is changed to
`debug`, since a warning is not appropriate for invalid redirect URLs.

Resolves: #100197
Releases: main, 11.5
Signed-off-by: default avatarTorben Hansen <derhansen@gmail.com>
Change-Id: I10d1723de131e0387f7dd2103c8a1ca21ed015e5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78733


Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent 628e335c
Branches
Tags
No related merge requests found
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