FTS: escape double quote

pull/209/head
M66B 2 years ago
parent f65f033a5e
commit 0d4f862718

@ -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…
Cancel
Save