d9k opened a new issue #17719:
URL: https://github.com/apache/superset/issues/17719
(Assuming we have
```
FEATURE_FLAGS = {
# . . . . .
"ENABLE_TEMPLATE_PROCESSING": True
}
```
)
For example, I have filter
```
{% set filter_city = filter_values("example_filter_city_name", remove_filter
= True) %}
{% if filter_city | length %}
example_city_name IN (
{{ "'" + "','".join(filter_city) + "'" }}
)
OR example_city_name IS NULL
{% else %}
TRUE
{% endif %}
```
How can I escape SQL values in `{{ "'" + "','".join(filter_city) + "'" }}`
exampression to make this filter template safe?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]