This commit is contained in:
Daniel Swarbrick committed 2011-01-03 12:52:25 +01:00
1 parent 09e6fd3f4e
commit 2632af929d
1 file changed
+2 -2
@@ -213,7 +213,7 @@ static switch_status_t save_cdr(const char * const template, const char * const
/* /*
* In the expanded vars, replace double quotes (") with single quotes (') * In the expanded vars, replace double quotes (") with single quotes (')
* for corect PostgreSQL syntax, and replace semi-colon with space to * for correct PostgreSQL syntax, and replace semi-colon with space to
* prevent SQL injection attacks. * prevent SQL injection attacks.
*/ */
values = strdup(cdr); values = strdup(cdr);
@@ -231,7 +231,7 @@ static switch_status_t save_cdr(const char * const template, const char * const
/* /*
* Patch for changing empty strings ('') in the expanded variables to * Patch for changing empty strings ('') in the expanded variables to
* Postgresql null * PostgreSQL null
*/ */
for (p = values; *p; ++p) { for (p = values; *p; ++p) {
if (*p == ',') { if (*p == ',') {