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)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 21 May 2012 20:55:57 +0000 (16:55 -0400)
commite6d8c813bba8e754dcbd3489e4d945915a0c616d
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