Project

General

Profile

Actions

Bug #17095

closed

Typolink : cHash isn't created if there's no additionalParams

Added by Popy no-lastname-given about 17 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Communication
Target version:
-
Start date:
2007-03-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If the typolink is configured without additionalParams and without addQueryString, the cHash is not generated, even if we need it because of linkVars

File class.tslib_content.php, line 5219 :

if (substr($addQueryParams,0,1)!='&') {
$addQueryParams = '';
} elseif ($conf['useCacheHash']) {
$pA = t3lib_div::cHashParams($GLOBALS['TSFE']->linkVars.$addQueryParams);
$addQueryParams.= '&cHash='.t3lib_div::shortMD5(serialize($pA));
}

I propose this patch :

if (substr($addQueryParams,0,1)!='&') {
$addQueryParams = '';
}
if ($conf['useCacheHash'] && trim($GLOBALS['TSFE']->linkVars.$addQueryParams)) {
$pA = t3lib_div::cHashParams($GLOBALS['TSFE']->linkVars.$addQueryParams);
$addQueryParams.= '&cHash='.t3lib_div::shortMD5(serialize($pA));
}

(issue imported from #M5161)


Files

class.tslib_content.php.diff (604 Bytes) class.tslib_content.php.diff Administrator Admin, 2007-05-02 10:52

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #17070: typolink: cHash corrupted due to linkVarsClosedDmitry Dulepov2007-03-02

Actions
Related to TYPO3 Core - Bug #17002: cHash is not recreated on disposal in config.linkVarsClosed2007-02-17

Actions
Related to TYPO3 Core - Bug #19003: double cache or no cache through cHash variants of the same URLClosed2008-06-23

Actions
Actions

Also available in: Atom PDF