summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ab7eee7)
Adds a 'u' switch to preg_replace
Resolves: #39979
Releases: 7.6, master
Change-Id: I3c23f60a7bc157b9647d053492ce1bd226296dc8
Reviewed-on: https://review.typo3.org/49667
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
if ($isNumericSearchFilter && (int)$rootlineElement['uid'] === (int)$searchFilter) {
$text = str_replace('$1', $refNode->getText(), $replacement);
} else {
if ($isNumericSearchFilter && (int)$rootlineElement['uid'] === (int)$searchFilter) {
$text = str_replace('$1', $refNode->getText(), $replacement);
} else {
- $text = preg_replace('/(' . $searchFilterQuoted . ')/i', $replacement, $refNode->getText());
+ $text = preg_replace('/(' . $searchFilterQuoted . ')/iu', $replacement, $refNode->getText());
}
$refNode->setText($text, $refNode->getTextSourceField(), $refNode->getPrefix(), $refNode->getSuffix());
/** @var $childCollection \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection */
}
$refNode->setText($text, $refNode->getTextSourceField(), $refNode->getPrefix(), $refNode->getSuffix());
/** @var $childCollection \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNodeCollection */