#61664Error "&cHash comparison failed" in case of POST forms
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)) {
…
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.