[asterisk-bugs] [Asterisk 0017001]: [patch] sqlite module does bad parsing of values in config file
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Apr 13 11:38:42 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=17001
======================================================================
Reported By: snuffy
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 17001
Category: CDR/cdr_sqlite3_custom
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: SVN
JIRA: SWP-1058
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!): 250781
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2010-03-09 16:48 CST
Last Modified: 2010-04-13 11:38 CDT
======================================================================
Summary: [patch] 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, "'", "'");
======================================================================
----------------------------------------------------------------------
(0120330) svnbot (reporter) - 2010-04-13 11:38
https://issues.asterisk.org/view.php?id=17001#c120330
----------------------------------------------------------------------
Repository: asterisk
Revision: 257068
_U branches/1.6.2/
U branches/1.6.2/cdr/cdr_sqlite3_custom.c
------------------------------------------------------------------------
r257068 | tilghman | 2010-04-13 11:38:41 -0500 (Tue, 13 Apr 2010) | 15
lines
Merged revisions 257065 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r257065 | tilghman | 2010-04-13 11:33:21 -0500 (Tue, 13 Apr 2010) | 8
lines
Ensure that we can have commas within cdr values.
(closes issue https://issues.asterisk.org/view.php?id=17001)
Reported by: snuffy
Patches:
20100412__issue17001.diff.txt uploaded by tilghman (license 14)
Tested by: snuffy
........
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=257068
Issue History
Date Modified Username Field Change
======================================================================
2010-04-13 11:38 svnbot Checkin
2010-04-13 11:38 svnbot Note Added: 0120330
======================================================================
More information about the asterisk-bugs
mailing list