]> git.evergreen-ils.org Git - working/OpenSRF.git/commit
LP# 953299 - Prevent get/set of invalid cache keys
authorDan Scott <dan@coffeecode.net>
Mon, 21 May 2012 16:18:41 +0000 (12:18 -0400)
committerDan Scott <dan@coffeecode.net>
Mon, 21 May 2012 21:17:44 +0000 (17:17 -0400)
commit50219c2c11efd45f8da649e31c0560ec5015803e
tree2fe1f09db4a2c5b88ef7a9fa37400b095f160f4f
parentf13aba803ae69c0402ad4e936126942df16e2748
LP# 953299 - Prevent get/set of invalid cache keys

Clients of OpenSRF::Utils::Cache occasionally request cache keys that
contain invalid characters (a particular case is ISBNs that contain
spaces), so strip those out of incoming get/set requests to avoid ugly
memcached errors.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
src/perl/lib/OpenSRF/Utils/Cache.pm
src/perl/t/09-Utils-Cache.t