Koha-clms/Koha/SearchEngine
Tomas Cohen Arazi cc418a482a Bug 29418: Make clean_search_term escape double quotes
We noticed that several characters will break Zebra queries. So search
terms need to be quoted for things to work. In this context, double
quotes inside search terms are problematic because double quotes are
what we use for quoting strings.

This patch makes the clean_search_term method escape double quotes.

To test:
1. Apply the unit tests patch
2. Run:
   $ kshell
  k$ prove t/Koha/SearchEngine/Zebra/QueryBuilder.t
=> FAIL: It doesn't work as it should!
3. Apply this patch
4. Repeat 2
=> SUCCESS: It does the job!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2022-07-14 21:40:22 +02:00
..
Elasticsearch Bug 27770: ES: Deprecated aggregation order key [_term] used, replaced by [_key] 2022-03-20 14:17:12 +00:00
Zebra Bug 29418: Make clean_search_term escape double quotes 2022-07-14 21:40:22 +02:00
Elasticsearch.pm Bug 25030: Implement IncludeSeeFromInSearches with Elasticsearch 2021-10-22 11:25:40 -04:00
Indexer.pm Bug 25265: Prevent double reindex of the same item in batchmod 2020-09-28 10:10:08 +02:00
QueryBuilder.pm Bug 12478: allow more granular sorting configuration 2016-04-26 20:20:08 +00:00
Search.pm Bug 23763: Create a pagination_bar routine 2021-02-08 17:09:32 +01:00