Issue Bug Closed

#52156jumpurl.secure juHash error with URL encoded characters

Alexander Stehlik 09/20/13, 16:42 updated 10/23/17, 21:48

Description

When an URL to file contains URL encoded characters like spaces or ampersands the juHash check will fail with this error (Exception code is 1294585196):

jumpurl Secure: Calculated juHash did not match the submitted juHash.

The reason for this failure is obvious:

The hash gets calculated with an URL encoded version of the link in:

\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::locDataJU()

Then the hash is checked against the non URL encoded version of the link in:

\TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::jumpUrl()

My solution would be to URL decode the link before generating the hash. Any objections / other ideas?

Reviews 2