]> git.evergreen-ils.org Git - Evergreen.git/commit
Prevent patron search from returning horrible errors on regexian input
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Apr 2011 03:23:11 +0000 (03:23 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 5 Apr 2011 03:23:11 +0000 (03:23 +0000)
commitfa942a2a927c43535a8c791dee0fa88fc82f9680
tree91ca1493d34a9e44a843af2ace5c736b29474197
parentfc04434c0c37efe2fc704f687c274f0dbcaa3908
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_1@19984 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm