[TYPO3-core] RFC: Bug 5010: cHash is not recreated on disposal in config.linkVars

Oliver Hader oh at inpublica.de
Sat Feb 17 16:17:10 CET 2007


This is a SVN patch request.

Problem:
Imagine you'd like to forward one or more extension variables through
the system. The common way to do this is to use config.linkVars. For
caching purposes the cHash should be set. Unfortunatelly the cHash will
be taken as it is from the current page being displayed. A wrong cHash
results into an error message being reported ("wrong cHash").

TypoScript Example:
config.linkVars = type,L,tx_myext_pi1,tx_myext_pi2,cHash

Solution:
Recreate the cHash if it was defined in config.linkVars and used for
other parameters except id, type, no_cache, MP or ftu.

Comments:
The attached file 0005010.patch contains the changes concerning the
functionality. The change in t3lib/class.t3lib_tstemplate.php just
reduces code redundancy and could be seen as a "cleaner".
The attached file 0005010_post.patch contains only some naming changes:
"$val" to "$var" and "$tmpVal" to "$tmpVar" because it is about
"linkVars" and not "linkValues" and doesn't affect functionality.

Bugtracker references:
http://bugs.typo3.org/view.php?id=5010

Branch: Trunk


olly
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005010.patch
Type: text/x-diff
Size: 4068 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070217/b4771295/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005010_post.patch
Type: text/x-diff
Size: 1694 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070217/b4771295/attachment-0001.bin 


More information about the TYPO3-team-core mailing list