[BUGFIX] Disabling the cache does not work on invalid cHash value
authorDaniel Pötzinger <poetzinger@aoemedia.de>
Tue, 30 Aug 2011 20:40:31 +0000 (22:40 +0200)
committerOliver Hader <oliver@typo3.org>
Wed, 14 Sep 2011 08:32:50 +0000 (10:32 +0200)
Change-Id: Ia58a6eafc9cf6d02ee6066d2c2d4b976505399f1
Releases: 4.6, 4.5, 4.4, 4.3
Resolves: #29366
Reviewed-on: http://review.typo3.org/4942
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/cms/tslib/class.tslib_fe.php

index 6de3af5..bb2bc68 100644 (file)
                                if ($this->TYPO3_CONF_VARS['FE']['pageNotFoundOnCHashError']) {
                                        $this->pageNotFoundAndExit('Request parameters could not be validated (&cHash comparison failed)');
                                } else {
-                                       $this->set_no_cache();
+                                       $this->disableCache();
                                        $GLOBALS['TT']->setTSlogMessage('The incoming cHash "'.$this->cHash.'" and calculated cHash "'.$cHash_calc.'" did not match, so caching was disabled. The fieldlist used was "'.implode(',',array_keys($this->cHash_array)).'"',2);
                                }
                        }
                                if ($this->tempContent) { $this->clearPageCacheContent(); }
                                $this->pageNotFoundAndExit('Request parameters could not be validated (&cHash empty)');
                        } else {
-                               $this->set_no_cache();
+                               $this->disableCache();
                                $GLOBALS['TT']->setTSlogMessage('TSFE->reqCHash(): No &cHash parameter was sent for GET vars though required so caching is disabled',2);
                        }
                }