Bug #41728 ยป pagegen.diff
typo3/sysext/frontend/Classes/Page/PageGenerator.php | ||
---|---|---|
$space = !empty($GLOBALS['TSFE']->config['config']['sword_standAlone']) ? '[[:space:]]' : '';
|
||
foreach ($GLOBALS['TSFE']->sWordList as $val) {
|
||
if (strlen(trim($val)) > 0) {
|
||
$GLOBALS['TSFE']->sWordRegEx .= $space . quotemeta($val) . $space . '|';
|
||
$GLOBALS['TSFE']->sWordRegEx .= $space . str_replace('/', '\/',quotemeta($val)) . $space . '|';
|
||
}
|
||
}
|
||
$GLOBALS['TSFE']->sWordRegEx = preg_replace('/\\|$/', '', $GLOBALS['TSFE']->sWordRegEx);
|