From d1a0759373b9f2a860de96d7e8bd3fb0ac9021d8 Mon Sep 17 00:00:00 2001 From: Mathias Schreiber Date: Wed, 16 Sep 2015 11:24:58 +0200 Subject: [PATCH 1/1] [TASK] Add sane defaults for tracking tools to prevent 404s on cash errors The usual suspects google, Facebook and twitter add get parameters to links once shared. If you are running a well configured TYPO3 site, cHash mismatches will return an error 404 which we want to prevent by supplying default settings Resolves: #69864 Releases: master Change-Id: Iccbfd35f7f7beca15705cc47de1c5fbe594dd815 Reviewed-on: http://review.typo3.org/43371 Reviewed-by: Nicole Cordes Tested-by: Nicole Cordes Reviewed-by: Andreas Fernandez Tested-by: Andreas Fernandez --- typo3/sysext/core/Configuration/DefaultConfiguration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Configuration/DefaultConfiguration.php b/typo3/sysext/core/Configuration/DefaultConfiguration.php index 0f1615d2a168..427e72444f7d 100644 --- a/typo3/sysext/core/Configuration/DefaultConfiguration.php +++ b/typo3/sysext/core/Configuration/DefaultConfiguration.php @@ -1016,7 +1016,7 @@ return array( 'eID_include' => array(), // Array of key/value pairs where key is "tx_[ext]_[optional suffix]" and value is relative filename of class to include. Key is used as "?eID=" for index_ts.php to include the code file which renders the page from that point. (Useful for functionality that requires a low initialization footprint, eg. frontend ajax applications) 'disableNoCacheParameter' => FALSE, // Boolean: If set, the no_cache request parameter will become ineffective. This is currently still an experimental feature and will require a website only with plugins that don't use this parameter. However, using "&no_cache=1" should be avoided anyway because there are better ways to disable caching for a certain part of the website (see COA_INT/USER_INT documentation in TSref). 'cacheHash' => array(), // Array: Processed values of the cHash* parameters, handled by core bootstrap internally - 'cHashExcludedParameters' => 'L', // String: The the given parameters will be ignored in the cHash calculation. Example: L,tx_search_pi1[query] + 'cHashExcludedParameters' => 'L, pk_campaign, pk_kwd, utm_source, utm_medium, utm_campaign, utm_term, utm_content', // String: The the given parameters will be ignored in the cHash calculation. Example: L,tx_search_pi1[query] 'cHashOnlyForParameters' => '', // String: Only the given parameters will be evaluated in the cHash calculation. Example: tx_news_pi1[uid] 'cHashRequiredParameters' => '', // Optional: Configure Parameters that require a cHash. If no cHash is given but one of the parameters are set, then TYPO3 triggers the configured cHash Error behaviour 'cHashExcludedParametersIfEmpty' => '', // Optional: Configure Parameters that are only relevant for the chash if there's an associated value available. And asterisk "*" can be used to skip all empty parameters. -- 2.20.1