]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix parsing when using something like ldap settings. (done by anthonyl)
authorJoshua Colp <jcolp@digium.com>
Wed, 10 Jan 2007 19:46:29 +0000 (19:46 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 10 Jan 2007 19:46:29 +0000 (19:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@50405 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index 5639aa9e98a4b54a3a6b7c1d967ee093131988d7..7a47ffd19b844b60a2c8f051204e414586a0f4cf 100644 (file)
@@ -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++;