Project

General

Profile

Actions

Bug #61664

closed

Error "&cHash comparison failed" in case of POST forms

Added by Dirk Wildt over 9 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
Start date:
2014-09-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

The cHash calculation fails in TYPO3 6.2.1 - 6.2.4, if params are sent by a POST form.

The cause is, that the method
  • typo3_src-6.2.4/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php::makeCacheHash
    respects GET params only and ignores POST params.

This can fix by moving from _GET to _GP in the method. See (nearby line 2270):

...
public function makeCacheHash() {
// No need to test anything if caching was already disabled.
if ($this->no_cache && !$this->TYPO3_CONF_VARS['FE']['pageNotFoundOnCHashError']) {
return;
}
// dwildt, 1-
//$GET = GeneralUtility::_GET();
// dwildt, 1+
$GET = GeneralUtility::_GP();
if ($this->cHash && is_array($GET)) {
...

Actions

Also available in: Atom PDF