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

--- Comment #12 from Nick Clemens (kidclamp) <[email protected]> ---
Created attachment 188023
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188023&action=edit
Bug 40907: Prevent DT crash when searching with regex metachars

We should remove the regex metacharacters from the string or JS code
will raise an error and the query won't be generated, leading to the DT
neverending loading problem.

Test plan:
Go to http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=4
In the global "Search" of the items table, search using a regex
metacharacters in order to form a broken regex (eg. '[')
=> Without this patch there is a JS error in the console "Uncaught
SyntaxError: unterminated character class" and you get the "Processing"
that never ends
=> With this patch applied the search succeeds.

Signed-off-by: Mathieu <[email protected]>
Signed-off-by: Brendan Lawlor <[email protected]>
Signed-off-by: Nick Clemens <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to