Prevent patron search from returning horrible errors on regexian input
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Apr 2011 03:24:29 +0000 (03:24 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Apr 2011 03:24:29 +0000 (03:24 +0000)
commit470658822de34e249c2d8a2389c3435a2392022b
tree8dbbbe1320e412d36ac32fa0c85622559ae31890
parent76fd9b827ee0d655213b6587f3e0b4227d793d28
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/branches/rel_2_0@19985 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm