https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40907
Brendan Lawlor <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #187536|0 |1 is obsolete| | --- Comment #10 from Brendan Lawlor <[email protected]> --- Created attachment 187600 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187600&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]> -- 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/
