-
Notifications
You must be signed in to change notification settings - Fork 9
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
accept validateParams audits in filter #400
base: main
Are you sure you want to change the base?
accept validateParams audits in filter #400
Conversation
@@ -376,11 +376,12 @@ const getRawWhereClause = ( | |||
): string | [string, string | boolean | number] | undefined => { | |||
// Make sure the field is a legitimate field to avoid sql injection. Field | |||
// is either the name of a field, or a dot-separated path in a json object | |||
// of the 'responses' field. We should not accept anything else. | |||
// of the 'responses' field, or an audit name for validateParams, | |||
// which includes "-" and ":". We should not accept anything else. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If different fields have different regexes, we should not have only one regex here. Instead, we should make the match with -
and :
in the case of audits and with .
in the case of responses. Otherwise, there may be eventual unexpected results
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a check for field = audits
298aaf2
to
0672947
Compare
0672947
to
a003f63
Compare
* This lets one force input to be lowercase, uppercase, etc. * This is necessary in order to force postal code to be uppercase, as specified in od_mtl_2023 issue chairemobilite#400 (chairemobilite/od_mtl_2023#400) * This only changes how the text is displayed on the web page. It does not change the text that is sent to the backend. * Modify an InputString unit test to consider the new `textTransform` property * Add an example usage of textTransform to the postal code widget in the demo survey
@kaligrafy , @tahini what is going on here? |
Je ne comprends pas le lien entre le code et le commit message. |
No description provided.