]> git.evergreen-ils.org Git - 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:19:25 +0000 (17:19 -0400)
commit3e97b0f69be04957eefa149d06e05111f3ad4291
treefb23408becaaf84d38ff79919f27edcbb88d3ba7
parentc6cf4d9b6530f5b8b6bdf95c26db9986656fcce8
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