Project

General

Profile

Bug #20039 ยป 10468.diff

Administrator Admin, 2009-02-17 20:52

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
* @return string Returns the
*/
function tidyHTML($content) {
if ($this->TYPO3_CONF_VARS['FE']['tidy'] && $this->TYPO3_CONF_VARS['FE']['tidy_path']) {
$dotidy = ($this->TYPO3_CONF_VARS['FE']['tidy'] && $this->TYPO3_CONF_VARS['FE']['tidy_path']);
if (isset($this->config['config']['tidy']) && ($this->config['config']['tidy'] == 0)) {
$dotidy = false;
}
$dodetection = ($this->TYPO3_CONF_VARS['FE']['tidy'] == 2);
if (isset($this->config['config']['tidy']) && ($this->config['config']['tidy'] == 2)) {
$dodetection = true;
}
if ($dotidy) {
if ($dodetection) {
if (!preg_match('/Content-Type: *(text|application)\/(html|xhtml|xml|rss|rdf|atom)/i', $this->config['config']['additionalHeaders'])) {
return $content;
}
}
$oldContent = $content;
$fname = t3lib_div::tempnam('typo3_tidydoc_'); // Create temporary name
@unlink ($fname); // Delete if exists, just to be safe.
    (1-1/1)