[Koha-bugs] [Bug 29418] Error searching for analytics in detail view
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jul 4 22:25:35 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29418
--- Comment #31 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 137136
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=137136&action=edit
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 at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list