vulcan-sql
vulcan-sql copied to clipboard
Parameterize the output of custom tags
What’s the problem you're trying to solve
We've parameterized all the input data, but if the queries were generated by custom tags (Tag Extensions), we are not able to handle them.
Extension
createTagExtension('test', async ({ args, sql }) =>
`${args['arg']} ${sql}`
);
Template
{% test arg=context.params.id %}
{{ context.params.id }}
{% endtest %}
Result (with id = 'some injection')
some injection $1
Describe the solution you’d like
TBD
Additional context
We'd parameterize the output of filters, so custom filters are not affected.