[TYPO3-core] RFC #17284: Formprotection persistToken method is called too often, causing unnecessary DB-load
Helmut Hummel
helmut.hummel at typo3.org
Tue Jan 25 03:55:05 CET 2011
This is an SVN patch request.
Type: Bugfix, Performance
Bugtracker references:
http://bugs.typo3.org/view.php?id=17284
Branches:
Trunk
Problem:
To asure that in all cases the tokens get persisted, I added the
persistToken call way too often
Solution:
Remove most of the calls and add one in template->endPage instead, since
this is a central exit point for all modules.
Thanks for Steffen Kamper for the idea.
Note: A few places are left, where the template object is not used, thus
the persist method needs to be called there.
Kind regards,
Helmut
--
Helmut Hummel
TYPO3 Security Team Leader
TYPO3 .... inspiring people to share!
Get involved: typo3.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 17284.diff
Type: text/x-patch
Size: 10395 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110125/4608dfde/attachment.bin>
More information about the TYPO3-team-core
mailing list