[Koha-bugs] [Bug 10956] Series of OPAC searches can cause a browser crash

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 25 14:31:53 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10956

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #33897|0                           |1
        is obsolete|                            |

--- Comment #13 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 33903
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=33903&action=edit
[PASSED QA] Bug 10956 - Series of OPAC searches can cause a browser crash

This patch fixes the issue for bootstrap. It was earlier fixed for the prog
theme.

Solution: Prevent  jQuery.fn.highlight = function(pat) to be called with empty
pat
by skipping empty values in highlight loop.

To test:
Without patch, do a search as in comment #1 odr #3
Result: Endless loop (Script not responding)

Appply patch:
No endless loop, page displays OK

Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
To reproduce you need to search a string with 2 spaces.

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
I didn't manage to reproduce the problem, but I couldn't find
any regression either trying multiple searches.
Trusting Marc's and Jonathan's testing.

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


More information about the Koha-bugs mailing list