Bug 26952 - plugin search term is not correct escaped
Summary: plugin search term is not correct escaped
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Plugin architecture (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-06 13:45 UTC by Jonathan Druart
Modified: 2020-11-10 00:31 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2020-11-06 13:45:43 UTC
From bug 24633 comment 11:

It seems that we should URI escape the term before.

With this patch if you search "*" you get: 
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line 190

Without the patch you can search for "*", but "&?&".