]> git.koha-community.org Git - koha.git/commit
Bug 8646 - prevent the highlighter from going infinite loop
authorRobin Sheat <robin@catalyst.net.nz>
Thu, 16 Aug 2012 14:57:29 +0000 (16:57 +0200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 14 Sep 2012 00:23:08 +0000 (20:23 -0400)
commit09f53d16a5677f9c778b76be6c55102f2d5fba48
tree92b9e2d4d476a2968f9fac3fc4a34af2cf36245e
parent6608c2949df2436fcc36814d9285eb032adbde17
Bug 8646 - prevent the highlighter from going infinite loop

On certain search queries, for example
http://koha-intra/cgi-bin/koha/catalogue/search.pl?kw=idx&q=ti:book%20
the highlighter starts going into an infinite loop until the browser
decides to kill it.

This patch prevents the bad input going to the highlighter.

It also includes the fix on the OPAC, even though the issue doesn't come
up there. Better to be safe...

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 3e599787d4a3b918f45914347344f4a1d99241c2)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt