#16488Warning: preg_split(): Unknown modifier 'x' in /path/to/class.tx_indexedsearch.php on line 1978
Description
If the search pattern includes a forward slash ‘/’ you get this php warning message.
The Problem is that the preg_split in the function markupSWpartsOfString recognizes the slash as delimiter.
A solution could be to escape forward slashs in $regExString:
$regExString = str_replace(‘/’, ‘\/’,$regExString);
For me this is working. Perhaps you can check, if this is a good solution for this problem.
BTW: the problem only occures if the search has any results – of course. So for testing first make sure that you have some page content like aa/bb indexed and search for it.
(issue imported from #M4093)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.