bug_11063.diff

Administrator Admin, 2009-05-10 02:55

Download (1.18 KB)

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (working copy)
3342 3342
			}
3343 3343
		}
3344 3344

  
3345
			// Send content-lenght header. Notice that all HTML content outside the length of the content-length header will be cut off! Therefore content of unknown length from included PHP-scripts and if admin users are logged in (admin panel might show...) we disable it!
3346
		if ($this->config['config']['enableContentLengthHeader'] && !$this->isEXTincScript() && !$this->beUserLogin && !$this->doWorkspacePreview())	{
3345
			// Send content-lenght header.
3346
			// Notice that all HTML content outside the length of the content-length header will be cut off! Therefore content of unknown length from included PHP-scripts and if admin users are logged in (admin panel might show...) or if debug mode is turned on we disable it!
3347
		if ($this->config['config']['enableContentLengthHeader'] &&
3348
			!$this->isEXTincScript() &&
3349
			!$this->beUserLogin  &&
3350
			!$this->TYPO3_CONF_VARS['FE']['debug'] &&
3351
			!$this->config['config']['debug'] &&
3352
			!$this->doWorkspacePreview()
3353
		) {
3347 3354
			header('Content-Length: '.strlen($this->content));
3348 3355
		}
3349 3356
	}