[OpenSIPS-Devel] [OpenSIPS/opensips] 6e3aab: cachedb_redis: Allow quoting strings in raw queries
Liviu Chircu
noreply at github.com
Wed Apr 20 15:55:26 UTC 2022
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 6e3aab5ba9b5423c284a91e71ac9dc08855d99f9
https://github.com/OpenSIPS/opensips/commit/6e3aab5ba9b5423c284a91e71ac9dc08855d99f9
Author: Liviu Chircu <liviu at opensips.org>
Date: 2022-04-20 (Wed, 20 Apr 2022)
Changed paths:
M modules/cachedb_redis/cachedb_redis_dbase.c
Log Message:
-----------
cachedb_redis: Allow quoting strings in raw queries
In case the Redis raw query string arguments include whitespace (' ',
\t, \r, \n), script developers can now enclose them in single (') or
double quotes ("), and OpenSIPS will pass the correct string to Redis.
For example:
cache_raw_query("redis", "SET foo \"bar baz\"", "$avp(result)");
or:
cache_raw_query("redis", "SET foo 'bar baz'", "$avp(result)");
... are now possible and equivalent. Both of these will set the
"bar baz" value, without the quotes.
Fixes #2036
More information about the Devel
mailing list