mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 13:07:06 +00:00
FS-2953
This commit is contained in:
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 == ',') {
|
||||||
|
|||||||
Reference in new issue
Block a user