[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:33:03 +0000 (10:33 +0200)
Change-Id: I9df3d7b4bf1d565fc5a429bad6ee2d3d186f6044
Releases: 4.6, 4.5, 4.4, 4.3
Resolves: #29366
Reviewed-on: http://review.typo3.org/4705
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
typo3/sysext/cms/tslib/class.tslib_fe.php

index 153957a..4a7db7f 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);
                        }
                }