[Koha-bugs] [Bug 28316] Cannot search with square brackets []

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 12 10:08:40 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28316

Nicolas Legrand <nicolas.legrand at bulac.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicolas.legrand at bulac.fr

--- Comment #1 from Nicolas Legrand <nicolas.legrand at bulac.fr> ---
It also make fail detail.pl and opac-detail.pl. You can't print those pages
when there are brackets in the title (internal server error: reason' => "Failed
to parse query [(host-item:Vietnam, un [plus] un [\x{e9}gal] un)]").

You can escape brackets in the $cleaned_title variable like this:

$cleaned_title =~ s/(?:\[|\])//g;

and then the pages are printable. But that doesn't solve the search problem.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list