Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

nicer file type search #107

Merged
merged 2 commits into from
Oct 22, 2023
Merged

Conversation

dakkar
Copy link
Contributor

@dakkar dakkar commented Oct 22, 2023

  • the previous one could allow a SQL injection, since the opts.filetype value came straight from the browser

  • this more precise regex match will not produce spurious matches (which were very unlikely, true, but still, let's be precise) (video/movingimages would have matched %image%!)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

* the previous one could allow a SQL injection, since the
  `opts.filetype` value came straight from the browser

* this more precise regex match will not produce spurious
  matches (which were very unlikely, true, but still, let's be
  precise) (`video/movingimages` would have matched `%image%`!)
@Mar0xy Mar0xy merged commit b434025 into transfem-org:develop Oct 22, 2023
8 checks passed
@dakkar dakkar deleted the nicer-file-type-search branch November 1, 2023 18:44
@Mar0xy Mar0xy mentioned this pull request Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants