[Koha-bugs] [Bug 8702] System preferences search does not allow accented letters
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Aug 31 14:47:29 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8702
D Ruth Bavousett <ruth at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ruth at bywatersolutions.com
--- Comment #3 from D Ruth Bavousett <ruth at bywatersolutions.com> ---
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.
More information about the Koha-bugs
mailing list