Prevent patron search from returning horrible errors on regexian input
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Apr 2011 03:22:16 +0000 (03:22 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Apr 2011 03:22:16 +0000 (03:22 +0000)
commit9d29e1ac5b01fafccdf35a2e13efff39e0526f29
tree30527ab8fa6929490d33b584c708d9c5f399b1f2
parentcce75ff48f4ca21677816106519f703f89649098
Prevent patron search from returning horrible errors on regexian input

Add a utility method, _clean_regex_chars(), to filter common regex
characters out of input values.  When these characters are passed to
database SIMILAR searches, strange things (generally ugly errors) can
happen - so filter them out.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19983 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm