mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
FTS: escape double quote
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user