]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_odbc: Add SQL_ESC_BACKSLASHES dialplan function.
authorJoshua C. Colp <jcolp@sangoma.com>
Thu, 10 Feb 2022 12:02:23 +0000 (08:02 -0400)
committerMichael Bradeen <mbradeen@sangoma.com>
Thu, 14 Apr 2022 19:07:39 +0000 (14:07 -0500)
commit88522c22aa1985667c813c11df6f53d9f78b80a1
tree37f77d90d0bc0c68aa754457068ca6b147a6c19e
parent50ed3ed55b4712e3428564610e4a1d45e765ea4a
func_odbc: Add SQL_ESC_BACKSLASHES dialplan function.

Some databases depending on their configuration using backslashes
for escaping. When combined with the use of ' this can result in
a broken func_odbc query.

This change adds a SQL_ESC_BACKSLASHES dialplan function which can
be used to escape the backslashes.

This is done as a dialplan function instead of being always done
as some databases do not require this, and always doing it would
result in incorrect data being put into the database.

ASTERISK-29838

Change-Id: I152bf34899b96ddb09cca3e767254d8d78f0c83d
configs/samples/func_odbc.conf.sample
doc/CHANGES-staging/func_odbc_esc_backslashes.txt [new file with mode: 0644]
funcs/func_odbc.c