[Koha-bugs] [Bug 16804] Searching can be broken by search terms containing semicolons in XSLT

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 5 04:08:40 CEST 2017


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

--- Comment #2 from Liz Rea <liz at catalyst.net.nz> ---
Created attachment 67622
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67622&action=edit
Bug 16804 - unescaped semicolons in XSLT values can cause searches to fail

This patch adds a url-encode to the MARC21slimUtils, and applies it
specifically to a common place where semicolons can appear in searches, the 490
field.

To test:

* have OPACSuppression on
* have a record with a 490 field a la:

490 _a something ;
    _v 123

* go to the opac and search for this record
* click the Series link from the detail

Without this patch, there will be no results.

With this patch, you will get relevant results (possibly the same record back)

There are probably lots of places this could be applied, and also possibly many
other solutions.

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


More information about the Koha-bugs mailing list