0004940.patch

Administrator Admin, 2007-02-08 23:24

Download (3.05 KB)

View differences:

t3lib/config_default.php (Arbeitskopie)
189 189
		'pageNotFound_handling' => '',			// How TYPO3 should handle requests for non-existing/accessible pages. false (default): The 'nearest' page is shown. TRUE or '1': An TYPO3 error box is displayed. Strings: page to show (reads content and outputs with correct headers), eg. 'notfound.html' or 'http://www.domain.org/errors/notfound.html'. If prefixed "REDIRECT:" it will redirect to the URL/script after the prefix (original behaviour). If prefixed with "READFILE:" then it will expect the remaining string to be a HTML file which will be read and outputted directly after having the marker "###CURRENT_URL###" substituted with REQUEST_URI and ###REASON### with reason text, for example: "READFILE:fileadmin/notfound.html". Another option is the prefix "USER_FUNCTION:" which will call a user function, eg. "USER_FUNCTION:typo3conf/pageNotFoundHandling.php:user_pageNotFound->pageNotFound" where the file must contain a class "user_pageNotFound" with a method "pageNotFound" inside with two parameters, $param and $ref
190 190
		'pageNotFound_handling_statheader' => 'HTTP/1.0 404 Not Found',			// If 'pageNotFound_handling' is enabled, this string will always be sent as header before the actual handling.
191 191
		'pageNotFoundOnCHashError' => 1,		// Boolean. If true (default), a page not found call is made when a cHash evaluation error occurs. Otherwise this will just disable caching but still display page output.
192
		'pageNotFoundOnCHashEmpty' => 0,		// Boolean. If true, a page not found call is made when a cHash is empty. By default this will just disable caching but still display page output.
192 193
		'userFuncClassPrefix' => 'user_',		// This prefix must be the first part of any function or class name called from TypoScript, for instance in the stdWrap function.
193 194
		'addRootLineFields' => '',				// Comma-list of fields from the 'pages'-table. These fields are added to the select query for fields in the rootline.
194 195
		'checkFeUserPid' => 1,					// Boolean. If set, the pid of fe_user logins must be sent in the form as the field 'pid' and then the user must be located in the pid. If you unset this, you should change the fe_users.username eval-flag 'uniqueInPid' to 'unique' in $TCA. This will do: $TCA['fe_users']['columns']['username']['config']['eval']= 'nospace,lower,required,unique';
typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
1574 1574
	 */
1575 1575
	function reqCHash()	{
1576 1576
		if (!$this->cHash)	{
1577
			if ($this->TYPO3_CONF_VARS['FE']['pageNotFoundOnCHashError']) {
1577
			if ($this->TYPO3_CONF_VARS['FE']['pageNotFoundOnCHashEmpty']) {
1578 1578
				if ($this->tempContent)	{ $this->clearPageCacheContent(); }
1579 1579
				$this->pageNotFoundAndExit('Request parameters could not be validated (&cHash empty)');
1580 1580
			} else {