http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8702
D Ruth Bavousett <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from D Ruth Bavousett <[email protected]> --- It might be better to use this: $searchfield =~ s/\p{IsC}//g; #Toss out control codes, Unicode compliant Fridolyn's patch would toss *some* non-word characters--spaces, tabs, newlines, and formfeeds--when they appear at the ends of the string, but would not deal with escape characters or other undesirable inputs. Using this statement would express the original intent in a fully-Unicode-compliant way. Suggest changing the patch to the example above. It will pass letters, marks, numbers, punctuation, symbols, and separators. Chris, your paranoia is a good thing! Any of the other classes of character probably are okay--although most won't match anything--but the control codes are probably a good thing to toss out. (Note: I haven't tried this myself in the Koha context; I've used it elsewhere. Definitely, someone wants to TEST THIS. It's pretty arcane.) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
