Skip to content

fix(search): sanitize FTS5 operators#390

Open
ming813-ting wants to merge 1 commit into
TencentCloud:mainfrom
ming813-ting:fix-issue-160
Open

fix(search): sanitize FTS5 operators#390
ming813-ting wants to merge 1 commit into
TencentCloud:mainfrom
ming813-ting:fix-issue-160

Conversation

@ming813-ting

@ming813-ting ming813-ting commented Jul 4, 2026

Copy link
Copy Markdown

Description | 描述

Sanitize FTS5 operators before building the query to prevent user input from changing query semantics.

Added test cases to verify the sanitization behavior.

Related Issue | 关联 Issue

Fix #160

Change Type | 修改类型

  • Bug fix | Bug 修复
  • New feature | 新功能
  • Documentation update | 文档更新
  • Code optimization | 代码优化

Self-test Checklist | 自测清单

  • Verified locally | 本地验证通过
  • No existing features affected | 无影响现有功能

Additional Notes | 其他说明

None.

@Maxwell-Code07

Copy link
Copy Markdown
Collaborator

Thank you for submitting this PR and participating in Tencent Rhino-bird Open-source Training Program!
We have successfully received your submission. The program is currently in full swing, and we will complete the Code Review for you as soon as possible. Please keep an eye on the status notifications for this PR so you can follow up promptly once the review feedback is provided.
Thanks again for your contribution and open-source spirit! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(search): buildFtsQuery does not sanitize FTS5 operators — user input alters query semantics

2 participants