Skip to content

fix: validate search query input#5959

Open
dtopenclaw wants to merge 1 commit into
SecureBananaLabs:mainfrom
dtopenclaw:fix/search-query-validation
Open

fix: validate search query input#5959
dtopenclaw wants to merge 1 commit into
SecureBananaLabs:mainfrom
dtopenclaw:fix/search-query-validation

Conversation

@dtopenclaw

Copy link
Copy Markdown

Summary

  • normalize search query input by trimming valid string values
  • reject repeated/non-string q parameters before they reach the search service
  • reject search queries longer than 200 characters with a 400 response
  • make the API test script target concrete test files under Node 22
  • add focused API coverage for trimming, long-query rejection, and repeated-parameter rejection

Validation

  • npm test

Fixes #5958

github-actions Bot added a commit that referenced this pull request Jun 9, 2026
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.

Search query should be validated and length-limited

1 participant