Use correct sqlite escapes of strings.
This commit is contained in:
parent
4bf882d385
commit
e03b4ff0c1
|
@ -82,8 +82,8 @@ static const char* sql_escape_string(const char* str)
|
||||||
size_t n = 0;
|
size_t n = 0;
|
||||||
for (; n < strlen(str); n++)
|
for (; n < strlen(str); n++)
|
||||||
{
|
{
|
||||||
if (str[n] == '\'' || str[n] == '\\')
|
if (str[n] == '\'')
|
||||||
out[i++] = '\\';
|
out[i++] = '\'';
|
||||||
out[i++] = str[n];
|
out[i++] = str[n];
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
|
|
Loading…
Reference in New Issue