diff options
author | ThibG <thib@sitedethib.com> | 2020-11-12 18:35:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 18:35:23 +0100 |
commit | 9870b175b477bbc984fc7945f1ebe07e3f2b0053 (patch) | |
tree | 8705307fed3d5de28ade8255c3b985c54637fd19 /app/javascript/flavours/glitch/util/settings.js | |
parent | 148ce97e21092500a2abeb87f6dc3c0adf5f28e4 (diff) |
Fix possible inconsistencies in tag search (#14906)
Do not downcase the queried tag before passing it to postgres when searching: - tags are not downcased on creation - `arel_table[:name].lower.matches(pattern)` generates an ILIKE anyway - if Postgres and Rails happen to use different case-folding rules, downcasing before query but not before insertion may mean that some tags with some casings are not searchable
Diffstat (limited to 'app/javascript/flavours/glitch/util/settings.js')
0 files changed, 0 insertions, 0 deletions