Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional sanitizing of _ and % in search values #208

Open
xmicha82 opened this issue Oct 11, 2021 · 0 comments
Open

Optional sanitizing of _ and % in search values #208

xmicha82 opened this issue Oct 11, 2021 · 0 comments

Comments

@xmicha82
Copy link

xmicha82 commented Oct 11, 2021

Hey everyone, we are trying to implement search on strings containing a lot of underscore characters and would like to have an optional sanitizing of the right side of search values. We could theoretically do that in our controllers, but that would require and additional run of your parser in order to only parse the value and not the whole search string. Would it be possible to implement this on your side in an opt-in manner? Thank you.

https://api.rubyonrails.org/classes/ActiveRecord/Sanitization/ClassMethods.html#method-i-sanitize_sql_like

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

No branches or pull requests

1 participant