mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 06:31:17 +00:00
FTS: escape double quote
This commit is contained in:
parent
f65f033a5e
commit
0d4f862718
1 changed files with 4 additions and 1 deletions
|
@ -223,7 +223,10 @@ public class Fts4DbHelper extends SQLiteOpenHelper {
|
|||
}
|
||||
|
||||
private static String escape(String word) {
|
||||
return "'" + word.replaceAll("'", "''") + "'";
|
||||
return "'" + word
|
||||
.replaceAll("'", "''")
|
||||
.replaceAll("\"", "\"\"") +
|
||||
"'";
|
||||
}
|
||||
|
||||
static Cursor getIds(SQLiteDatabase db) {
|
||||
|
|
Loading…
Reference in a new issue