Project

General

Profile

Bug #18666 ยป bug_8195.diff

Administrator Admin, 2008-09-25 03:39

View differences:

t3lib/config_default.php (Arbeitskopie)
$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = TRUE;
}
// Allow htmlentities in SiteName
// Don't care about security as this value is coming from a completely trusted source
if (preg_match('|[&#;]|', $TYPO3_CONF_VARS['SYS']['sitename'])) {
$temporaryValue_sitename = $TYPO3_CONF_VARS['SYS']['sitename'];
if ($TYPO3_CONF_VARS['BE']['forceCharset']=='utf-8') {
// If utf-8 is set then the corresponding PHP value is well known
$temporaryValue_charset = 'UTF-8';
$temporaryValue_sitename = html_entity_decode($temporaryValue_sitename, ENT_COMPAT, $temporaryValue_charset);
} else {
// Otherwise, expect latin1 and rely on PHPs default...
$temporaryValue_sitename = html_entity_decode($temporaryValue_sitename);
}
$TYPO3_CONF_VARS['SYS']['sitename'] = $temporaryValue_sitename;
unset ($temporaryValue_sitename);
}
// simple debug function which prints output immediately
function xdebug($var='',$br=0) {
// If you wish to use the debug()-function, and it does not output something, please edit the IP mask in TYPO3_CONF_VARS
    (1-1/1)