SearchFilter may use invalid regex #8311
Unanswered
sevdog
asked this question in
Potential Issue
Replies: 1 comment
-
There should be some validation in
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using
SearchFilter
with the iregex lookup may forward an invalid regex to database backend resulting in aDataError
.With this simple setup
When querying with a "non completed" regular expression (ie
(a
, which has an unbalanced parens) will raise an error, since there is no validation for the proided regex before using it.When using regular expressions which may come from an untrusted source they must be validated in some way.
Beta Was this translation helpful? Give feedback.
All reactions