[TYPO3-core] RFC: Fix bug 4093: PHP warning if indexed_search search word contains a front slash
Michael Stucki
michael at typo3.org
Fri Aug 25 17:49:56 CEST 2006
This is a SVN patch request.
Problem:
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.
Solution:
Quote searchwords using preg_quote() instead of quotemeta().
Branches:
TYPO3_4-0 / Trunk
Bugtracker reference:
http://bugs.typo3.org/view.php?id=4093
- michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_4093_v2.diff
Type: text/x-diff
Size: 531 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060825/500d8831/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060825/500d8831/attachment.pgp
More information about the TYPO3-team-core
mailing list