Files
DeepTutor/tests/services/storage
Rudy Celekli 1e7bc227b0 fix(storage): escape LIKE wildcards in file library search
search_files promises case-insensitive substring matching, but _search_files_sync
interpolated the query into a LIKE pattern without escaping. SQLite LIKE treats
'_' as any single character and '%' as any run, so a query like 'report_v1'
matched 'reportXv1.pdf' too — filenames commonly contain '_', so the false
positives are routine. Escape the query's LIKE metacharacters and add ESCAPE.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-26 10:50:54 -04:00
..