1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

fix: security vulnerability (#3497)

This was an oversight of https://github.com/Unleash/unleash/pull/3402
This commit is contained in:
Gastón Fournier 2023-04-11 16:13:59 +02:00 committed by GitHub
parent 6afa52463b
commit 5ff883bc69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ export default class EmailController extends Controller {
const { template } = req.params; const { template } = req.params;
const ctx = req.query; const ctx = req.query;
const data = await this.emailService.compileTemplate( const data = await this.emailService.compileTemplate(
template, sanitize(template),
TemplateFormat.PLAIN, TemplateFormat.PLAIN,
ctx, ctx,
); );