diff options
author | fox <[email protected]> | 2021-03-27 09:43:22 +0300 |
---|---|---|
committer | fox <[email protected]> | 2021-03-27 09:43:22 +0300 |
commit | f2f2b6d1f42ffd031534a20d24f547984835dd17 (patch) | |
tree | be1bbaac6fb655ca5676b64ffd6b8bc08ffdd4d5 | |
parent | 0b82afabd5f4eaac9a4a163d890dab34443f18ec (diff) | |
parent | 5d5c034a905158bf6a9ce868663e6ee7dad8fc49 (diff) |
Merge pull request 'Adjust quotation marks in search query before 'str_getcsv'.' (#26) from wn/tt-rss:search-quotation-marks into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/26
-rwxr-xr-x | classes/feeds.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index 68d535481..12d6dd65f 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -2054,8 +2054,7 @@ class Feeds extends Handler_Protected { } private static function _search_to_sql($search, $search_language, $owner_uid) { - - $keywords = str_getcsv(trim($search), " "); + $keywords = str_getcsv(preg_replace('/(-?\w+)\:"(\w+)/', '"${1}:${2}', trim($search)), ' '); $query_keywords = array(); $search_words = array(); $search_query_leftover = array(); |