Extra spaces in exposed filters and incorrect results

Created on 6 October 2011, about 14 years ago
Updated 10 June 2025, 4 months ago

Extra spaces at the start or end of text entered into an exposed filter can cause problems. For example, if you have something with "foo" and you filter for "foo" you'll get the result. But, if you filter for "foo " (note the extra space) you can get into a problem.

Either by default or via an option this should be passed through trim().

πŸ› Bug report
Status

RTBC

Version

3.30

Component

exposed filters

Created by

πŸ‡ΊπŸ‡ΈUnited States mfer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024