]> 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)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 4 Mar 2019 18:36:11 +0000 (18:36 +0000)
commitdd98584c8572b85afbd68ff98423605df9b18822
tree13777a17dca9fff4eef18ceb982e269897178edf
parentff20d029e397acbac2ddaf9d11e6a0a7dc184ce2
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>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t