mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
FS-2953
This commit is contained in:
parent
09e6fd3f4e
commit
2632af929d
@ -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 (')
|
||||
* 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.
|
||||
*/
|
||||
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
|
||||
* Postgresql null
|
||||
* PostgreSQL null
|
||||
*/
|
||||
for (p = values; *p; ++p) {
|
||||
if (*p == ',') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user