Use correct sqlite escapes of strings.
This commit is contained in:
1 parent
4bf882d385
commit
e03b4ff0c1
1 file changed
+2
-2
@@ -82,8 +82,8 @@ static const char* sql_escape_string(const char* str)
|
||||
size_t n = 0;
|
||||
for (; n < strlen(str); n++)
|
||||
{
|
||||
if (str[n] == '\'' || str[n] == '\\')
|
||||
out[i++] = '\\';
|
||||
if (str[n] == '\'')
|
||||
out[i++] = '\'';
|
||||
out[i++] = str[n];
|
||||
}
|
||||
return out;
|
||||
|
||||
Reference in new issue
Block a user