[asterisk-bugs] [Asterisk 0017001]: sqlite module does bad parsing of values in config file
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Mar 9 16:48:39 CST 2010
The following issue has been SUBMITTED.
======================================================================
https://issues.asterisk.org/view.php?id=17001
======================================================================
Reported By: snuffy
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 17001
Category: CDR/cdr_sqlite3_custom
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!): 250781
Request Review:
======================================================================
Date Submitted: 2010-03-09 16:48 CST
Last Modified: 2010-03-09 16:48 CST
======================================================================
Summary: sqlite module does bad parsing of values in config
file
Description:
If you try to use an option to a CDR() function or any function it will
fail to input records, because it separates on the ',' which can be
mid-string like CDR(blah,f) would become 'CDR(blah' and 'f)' causing error
Offending code:
133 while ((val = strsep(&vals, ","))) {
134 /* Strip the single quotes off if they are there */
135 val = ast_strip_quoted(val, "'", "'");
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-03-09 16:48 snuffy New Issue
2010-03-09 16:48 snuffy Asterisk Version => SVN
2010-03-09 16:48 snuffy Regression => No
2010-03-09 16:48 snuffy SVN Branch (only for SVN checkouts, not tarball
releases) => N/A
2010-03-09 16:48 snuffy SVN Revision (number only!) => 250781
======================================================================
More information about the asterisk-bugs
mailing list