diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-10 19:46:29 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-10 19:46:29 +0000 |
commit | d86e80721ccee4727d829cb0d9659642ee411f36 (patch) | |
tree | 82a9e287440dbf2ff9ca8d9b2d49ca1c66f52b15 /main/config.c | |
parent | 51d97983152acdcc099db0cc8d75ec1ad2accb08 (diff) |
Fix parsing when using something like ldap settings. (done by anthonyl)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@50405 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/config.c')
-rw-r--r-- | main/config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c index 5639aa9e9..7a47ffd19 100644 --- a/main/config.c +++ b/main/config.c @@ -1103,7 +1103,7 @@ int read_config_maps(void) { struct ast_config *config, *configtmp; struct ast_variable *v; - char *driver, *table, *database, *stringp; + char *driver, *table, *database, *stringp, *tmp; clear_config_maps(); @@ -1119,6 +1119,9 @@ int read_config_maps(void) stringp = v->value; driver = strsep(&stringp, ","); + if ((tmp = strchr(stringp, '\"'))) + stringp = tmp; + /* check if the database text starts with a double quote */ if (*stringp == '"') { stringp++; |