From cf7bce50a49a0d7ae86e08be59fa157c20a85736 Mon Sep 17 00:00:00 2001 From: FluxCapacitor2 <31071265+FluxCapacitor2@users.noreply.github.com> Date: Sat, 21 Dec 2024 15:19:39 -0500 Subject: [PATCH] Escape query string in hybrid searches --- app/database/db_sqlite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/database/db_sqlite.go b/app/database/db_sqlite.go index 78e17ba..a172c3f 100644 --- a/app/database/db_sqlite.go +++ b/app/database/db_sqlite.go @@ -525,7 +525,7 @@ func (db *SQLiteDatabase) HybridSearch(ctx context.Context, sources []string, qu args = append(args, src) } - args = append(args, Finished, queryString, limit) + args = append(args, Finished, escape(queryString), limit) rows, err := db.conn.QueryContext(ctx, query.String(), args...)