Project

General

Profile

Actions

Bug #16488

closed

Warning: preg_split(): Unknown modifier 'x' in /path/to/class.tx_indexedsearch.php on line 1978

Added by Christian Ehret over 18 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2006-08-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

bug_4093_v2.diff (531 Bytes) bug_4093_v2.diff Administrator Admin, 2006-08-25 17:48
Actions #1

Updated by Michael Stucki about 18 years ago

Fixed in TYPO3 4.0.2 and later.

Actions

Also available in: Atom PDF