Explicitly escape backslash in ESCAPE clause. This has been suggested by Stickler bot.

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/2734/head
DL6ER 5 years ago
parent f80fdd7e83
commit 5246b3e496
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

@ -114,7 +114,7 @@ scanDatabaseTable() {
# as a literal underscore character. We pretreat the $domain variable accordingly to escape underscores.
case "${type}" in
"exact" ) querystr="SELECT domain FROM vw_${table} WHERE domain = '${domain}'";;
* ) querystr="SELECT domain FROM vw_${table} WHERE domain LIKE '%${domain//_/\\_}%' ESCAPE '\'";;
* ) querystr="SELECT domain FROM vw_${table} WHERE domain LIKE '%${domain//_/\\_}%' ESCAPE '\\'";;
esac
# Send prepared query to gravity database

Loading…
Cancel
Save