LP# 953299 - Prevent get/set of invalid cache keys user/dbs/lp953299/clean_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 16:18:41 +0000 (12:18 -0400)
commit083c52093ab723dedca2438c4c573ba676a55125
tree224524155aa2ec6a538b4e054c77868daddd8c6d
parentdbd9798ba5b9f568f9e4517f076a85d413fa3320
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>
src/perl/lib/OpenSRF/Utils/Cache.pm
src/perl/t/09-Utils-Cache.t