https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r50405 | file | 2007-01-10 14:46:29 -0500 (Wed, 10 Jan 2007) | 2 lines
Fix parsing when using something like ldap settings. (done by anthonyl)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50406
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
{
struct ast_config *config, *configtmp;
struct ast_variable *v;
- char *driver, *table, *database, *stringp;
+ char *driver, *table, *database, *stringp, *tmp;
clear_config_maps();
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++;