Commit c7615b69 authored by Helmut Hummel's avatar Helmut Hummel
Browse files

[BUGFIX] Fix regression in prefixLocalAchors feature

The security fix for #62723 missed an edge case were the
TypoScriptFrontendController main cObj property is not yet initialized.

Check for this case and create it.

Resolves: #63896
Releases: 4.5, 6.2, master
Change-Id: Ief9338453517e095d120007d8d13ba6405d6fbb8

Reviewed-by: default avatarHelmut Hummel <>
Tested-by: default avatarHelmut Hummel <>
parent 583d1bfd
......@@ -4405,6 +4405,9 @@ if (version == "n3") {
function prefixLocalAnchorsWithScript() {
if (!$this->beUserLogin) {
if (!is_object($this->cObj)) {
$scriptPath = $this->cObj->getUrlToCurrentLocation();
} else {
// To break less existing sites, we allow the REQUEST_URI to be used for the prefix
Supports Markdown
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