Skip to content
Snippets Groups Projects
Commit 0b9d925f authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benni Mack
Browse files

[BUGFIX] Catch UnknownLinkHandlerException in view helper

EXT:redirect is using the TargetPageIdViewHelper to
get the page ID from a "t3://page?uid=" link. If this link
is however somehow malformed, e.g. "t3://page=uid=",
this previously lead to an exception being thrown, making
the redirects module unusable for an editor. Since an
editor usually does not have access to pid=0, it needed
an administrator to make the module accessible again.

This is now fixed by catching this exception in the
view helper.

Resolves: #95488
Releases: master, 10.4
Change-Id: I27625f22a8b6f6a197402742c781d5fe8adae7e4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71500


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarSybille Peters <sypets@gmx.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarSybille Peters <sypets@gmx.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent e2c06db7
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