]> git.koha-community.org Git - koha.git/commit
Bug 22228: Escape lone colons and make sure term is balanced
authorEre Maijala <ere.maijala@helsinki.fi>
Thu, 31 Jan 2019 11:43:00 +0000 (13:43 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 Mar 2019 15:08:25 +0000 (15:08 +0000)
commit33489f2df1ef027e7c77d4bdbe0446d8bf69401c
treedc31033ff29c91ba6fcfc2d4c9de8184de022ba5
parentced78bb7c635d1e5eb44eb4e78e1b6f99e53d9a0
Bug 22228: Escape lone colons and make sure term is balanced

Escapes unquoted colons that have whitespace on either side. Removed unbalanced quotes.

Test plan:

1. Make sure the test case described in the bug works
2. Make sure tests pass:
  prove t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t

Signed-off-by: Björn Nylén <bjorn.nylen(at)ub.lu.se>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit dd98584c8572b85afbd68ff98423605df9b18822)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t