mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: security vulnerability (#3497)
This was an oversight of https://github.com/Unleash/unleash/pull/3402
This commit is contained in:
		
							parent
							
								
									6afa52463b
								
							
						
					
					
						commit
						5ff883bc69
					
				@ -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,
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user