Actions
Bug #23103
closedIt is not possible to search for '%' or '_' inside the Backend
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2010-07-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
Neither with the search-button in the Backend-Toolbar, nor within the Admin-Tool 'DB check' with the 'full search' function, it is possible to search for the chars '%' and '_'.
Both functions does not escape the named chars for using inside the like-query, so they are interpreted as wildcards by sql.
Additionally the Toolbar-search does not use the function t3lib_db->searchQuery, which should be used for dbal support.
Solution:
adding t3lib_db->escapeStrForLike into t3lib_db->searchQuery
using t3lib_db->searchQuery inside the Toolbar-search (class.db_list.inc)
see patch
(issue imported from #M15001)
Files
Actions