diff options
author | Mark Michelson <mmichelson@digium.com> | 2016-01-12 10:36:15 -0600 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2016-01-12 13:07:17 -0600 |
commit | 01c5e2a07e5b08f2dd99523571d00735ee0cb89f (patch) | |
tree | 7ac714cde33ec8134fdea29f729faa31074d9783 /main/xml.c | |
parent | 1d5651bceafc5a7760213aa26bee3c5c6b5cedac (diff) |
res_sorcery_realtime: Remove leading ^ requirement.
res_sorcery_realtime's search-by-regex callback performed a check to
ensure that the passed-in regex began with a caret (^). If it did not,
then no results would be returned.
This callback only started to become used when "like" support was added
to PJSIP CLI commands. The CLI command for listing objects would pass an
empty regex ("") to the sorcery backend if no "like" statement was
present. For most sorcery backends, this resulted in returning all
objects. However, for realtime, this resulted in returning no objects.
This commit seeks to fix the regression by removing the requirement from
res_sorcery_realtime for the passed-in-regex to begin with a caret.
ASTERISK-25689 #close
Reported by Marcelo Terres
Change-Id: I22b4dc5d7f3f11bb29ac2e42ef94682e9bab3b20
Diffstat (limited to 'main/xml.c')
0 files changed, 0 insertions, 0 deletions