Project

General

Profile

Actions

Bug #105036

closed

Switching user in Backend leads to a [object%20Object] URL

Added by Helmut Hummel 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2024-09-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

SwitchUserController intends to return an URI to the TYPO3
main route, thus calls the UriBuilder, which returns an Uri object.

When json encoding this PHP object, it is transformed to an empty JS object,
eventually leading to the following code being executed:

top.window.location.href = {}

This results in adding [object%20Object] to the URL.

In restrictive webserver configurations,
such URLs will lead to a Bad Request response.

Actions

Also available in: Atom PDF