[TYPO3-core] RFC #15911: Bug: jumpurl.secure fails if no mimeTypes are set

Reinhard Führicht rf at typoheads.at
Wed Oct 6 10:52:15 CEST 2010


Hi

This is an SVN patch request.

Type: Bugfix

Bugtracker reference: http://bugs.typo3.org/view.php?id=15911

Branches: trunk,4.4

Problem:

When creating a filelink without setting "mimeTypes", the juHash 
comparison never matches.

TYPO3 shows the following error message:
jumpurl Secure: Calculated juHash did not match the submitted juHash.

Solution:

Initialize the variable $mimetypeValue as an empty string in 
tslib_content before calculating the juHash.

Steps to reproduce:

- Use a simple TypoScript like this to generate a filelink.

page.1 = TEXT
page.1.field = media
page.1.filelink {
   path = uploads/media/
   jumpurl = 1
   jumpurl {
     secure = 1
   }
}

- Add a file in the media field of a page
- Click the generated link in Frontend
- This will let TYPO3 crash will the following error:

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

Notes:

- This behavior was introduced in TYPO3 4.4.3 with the fix of 0015531 
(http://bugs.typo3.org/view.php?id=15531).

- I additionally changed 2 lines in tslib_fe to reuse existing variables 
instead of calling t3lib_div::_GP again.

Regards,
Reinhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15911_v1.patch
Type: text/x-diff
Size: 1178 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101006/cea125eb/attachment.patch>


More information about the TYPO3-team-core mailing list