Skip to content

Commit

Permalink
Escape query string in hybrid searches
Browse files Browse the repository at this point in the history
  • Loading branch information
FluxCapacitor2 committed Dec 21, 2024
1 parent 910037f commit cf7bce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/database/db_sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)

Expand Down

0 comments on commit cf7bce5

Please # to comment.