Escape single quotes in SQLite entries for message backups
Fixes #7491 Closes #7497
This commit is contained in:
parent
fd7a3190f8
commit
7f7aab044c
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ public class FullBackupExporter extends FullBackupBase {
|
|||
for (int i=0;i<cursor.getColumnCount();i++) {
|
||||
if (cursor.getType(i) == Cursor.FIELD_TYPE_STRING) {
|
||||
statement.append('\'');
|
||||
statement.append(cursor.getString(i).replace("'", "\\'"));
|
||||
statement.append(cursor.getString(i).replace("'", "''"));
|
||||
statement.append('\'');
|
||||
} else if (cursor.getType(i) == Cursor.FIELD_TYPE_FLOAT) {
|
||||
statement.append(cursor.getFloat(i));
|
||||
|
|
Loading…
Add table
Reference in a new issue