tidy_patch.txt
| 1 | --- class.tslib_fe.org.php 2007-05-05 15:11:06.299447763 +0200 |
|---|---|
| 2 | +++ class.tslib_fe.php 2007-05-05 15:26:39.724284385 +0200 |
| 3 | @@ -3637,7 +3637,15 @@ |
| 4 | fputs ($fp, $content); // Put $content |
| 5 | @fclose ($fp); // Close |
| 6 | |
| 7 | - exec ($this->TYPO3_CONF_VARS['FE']['tidy_path'].' '.$fname, $output); // run the $content through 'tidy', which formats the HTML to nice code. |
| 8 | + switch ($this->config['config']['metaCharset']){
|
| 9 | + |
| 10 | + case 'utf-8': $charsetOpt = '-utf8'; |
| 11 | + break; |
| 12 | + default: $charsetOpt = '-latin1'; |
| 13 | + } |
| 14 | + |
| 15 | + $tidyPath = str_replace('###CHARSET###',$charsetOpt, $this->TYPO3_CONF_VARS['FE']['tidy_path']);
|
| 16 | + exec ($tidyPath.' '.$fname, $output); // run the $content through 'tidy', which formats the HTML to nice code. |
| 17 | @unlink ($fname); // Delete the tempfile again |
| 18 | $content = implode(chr(10),$output); |
| 19 | if (!trim($content)) { |