]> git.koha-community.org Git - koha.git/commit
Bug 28316: avoid messing up regexes in the search queries
authorPetro Vashchuk <stalkernoid@gmail.com>
Mon, 14 Jun 2021 13:38:51 +0000 (16:38 +0300)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Wed, 22 Dec 2021 18:55:22 +0000 (19:55 +0100)
commit1bfda79f2643d92942409f2ca944cfc2498c7aa7
treea734baa084d2bac1f6e43b6ca78036aafa72307e
parentc8f5c155f32822234b55c1373e0c4e6a3fc8e929
Bug 28316: avoid messing up regexes in the search queries

This patch ensures that the behavior with
QueryRegexEscapeOptions set to values other than
"Escape" still will works as expected.

It does so by storing the contents of regexes
before escaping special characters and
then restores the contents of regexes back to how
it was before, ensuring that searching with regex is possible.

Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 59c26ce5f35f3f18830090b048d0cd6c2a1eb6fc)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm