1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 14:41:08 +00:00

FTS: escape double quote

This commit is contained in:
M66B 2022-10-21 10:51:59 +02:00
parent f65f033a5e
commit 0d4f862718

View file

@ -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) {