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

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sat Feb 17 19:23:50 CET 2007


Oliver Hader schrieb:
> 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.

The patch seems to remove the config.uniqueLinkVars functionality.

And I don't like to fiddle with the cHash mechanism in an RC.

Masi


PS: I'm not sure if adding cHash into linkVars is a good idea - even 
with the patch.


More information about the TYPO3-team-core mailing list