Crash if destination is invalid

Created on 20 April 2023, over 1 year ago
Updated 3 May 2023, over 1 year ago

Problem/Motivation

Hello, if the destination address does not start with '/' '?' '#' you will get an error:
Failed to authenticate user. Exception: The user-entered string 'home' must begin with a '/', '?', or '#'.

Proposed resolution

I think that an incorrect destination address should not affect the login result.
Remove unnecessary processing of the destination address with Url::fromUserInut().

Destination address without '/' '?' '#' is also considered valid and is processed by the kernel. For example, if you remove the slash from the destination in the login form, nothing will break and you will be redirected.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024