Project

General

Profile

Bug #17070 » tslib_content.v42.fixed.patch

Administrator Admin, 2010-05-21 10:37

View differences:

class.tslib_content.php (working copy)
$addQueryParams .= trim($this->stdWrap($conf['additionalParams'],$conf['additionalParams.']));
if (substr($addQueryParams,0,1)!='&') {
$addQueryParams = '';
} elseif ($conf['useCacheHash']) { // cache hashing:
$pA = t3lib_div::cHashParams($addQueryParams.$GLOBALS['TSFE']->linkVars); // Added '.$this->linkVars' dec 2003: The need for adding the linkVars is that they will be included in the link, but not the cHash. Thus the linkVars will always be the problem that prevents the cHash from working. I cannot see what negative implications in terms of incompatibilities this could bring, but for now I hope there are none. So here we go... (- kasper)
}
if ($conf['useCacheHash'] && trim($GLOBALS['TSFE']->linkVars . $addQueryParams)) { // cache hashing:
// Added '.$this->linkVars' dec 2003: The need for adding the linkVars is that they will be included in the link, but not the cHash. Thus the linkVars will always be the problem that prevents the cHash from working. I cannot see what negative implications in terms of incompatibilities this could bring, but for now I hope there are none. So here we go... (- kasper);
$pA = t3lib_div::cHashParams($GLOBALS['TSFE']->linkVars . $addQueryParams); // Added '.$this->linkVars' dec 2003: The need for adding the linkVars is that they will be included in the link, but not the cHash. Thus the linkVars will always be the problem that prevents the cHash from working. I cannot see what negative implications in terms of incompatibilities this could bring, but for now I hope there are none. So here we go... (- kasper)
$addQueryParams.= '&cHash='.t3lib_div::shortMD5(serialize($pA));
}
(6-6/7)