Issue Bug Closed

#102203Password recovery url in mail has wrong extension prefix

Moritz Noll 10/19/23, 09:55 updated 07/09/24, 15:19

Description

When I use the password recovery function I get a wrong extension prefix in url.

/forgot-password?ai[action]=showChangePassword&ai[controller]=PasswordRecovery&ai[hash]=1234567890|712f6c5129ccf8670531bafe33ea0d473bfb119b&cHash=4683b48e47168beec8039c3c36e33bf9

Instead of.

/forgot-password?tx_felogin_login[action]=showChangePassword&tx_felogin_login[controller]=PasswordRecovery&tx_felogin_login[hash]=1234567890|712f6c5129ccf8670531bafe33ea0d473bfb119b&cHash=4683b48e47168beec8039c3c36e33bf9

I think that comes from a third party extension that also uses the “UriBuilder” on that site and set the “argumentPrefix” before.
The problem is that you make here no reset on the UriBuilder instance like you explain in documentation (https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/Extbase/Reference/UriBuilder.html).
https://forge.typo3.org/projects/typo3cms-core/repository/1749/entry/typo3/sysext/felogin/Classes/Service/RecoveryService.php?utf8=%E2%9C%93&rev=v11.5.32#L141

Reviews 3