LP#1652382: normalization of memcache keys in C code
authorMike Rylander <mrylander@gmail.com>
Fri, 27 Jan 2017 20:25:05 +0000 (15:25 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 16 Feb 2017 19:55:53 +0000 (14:55 -0500)
commitf608444010fff1b4b6da06b5ec49df643218b005
treedf1a5fdfb52093840eac85d826de6d523e30543d
parentda98d30ca754a5a9bacb09982f8cad9c053a3105
LP#1652382: normalization of memcache keys in C code

Memcache does not allow spaces in keys, so here we will actively strip them
from any key we get from a caller.  Some callers are not very proactive about
sending clean keys, and this patch prevents issues that can poison C-based
OpenSRF service backends.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
src/libopensrf/osrf_cache.c