[BUGFIX] Trigger 404 for subpage shortcuts w/o subpages 05/50805/6
authorClaus Due <claus@namelesscoder.net>
Tue, 29 Nov 2016 13:41:30 +0000 (14:41 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 28 Feb 2018 10:36:58 +0000 (11:36 +0100)
commitf0f8f0b7ecea29de3b5d6173ed291cd0f2ebb03d
tree1e46d3091b5e9223af8b3d79d6143138cc398ec7
parentc1eda7cf851ae0afa71afe73210c5c427cc7acad
[BUGFIX] Trigger 404 for subpage shortcuts w/o subpages

This patch adds a try/catch around the call in TSFE to get
page and rootline with domain and makes getPageShortcut
function set $this->pageNotFound code, then throw error.

Change-Id: Id6aae04d7b4c2a8b267b0d949c056471c3a6b01b
Releases: master
Resolves: #78831
Reviewed-on: https://review.typo3.org/50805
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christer V <cvi@systime.dk>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Wolfgang Klinger <wolfgang@wazum.com>
Tested-by: Wolfgang Klinger <wolfgang@wazum.com>
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
Tested-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Error/Http/ShortcutTargetPageNotFoundException.php [new file with mode: 0644]
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php