]> 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:08:04 +0000 (14:08 -0500)
commitcabd2d6950c6616adb29cc9095bb97661a8d6bc4
treea05881e37183289cfcec0be4c622fd3c2786afd5
parent8ed1eeeaa6f42cde7759dfcd27c4c6dceb67095b
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