mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(core): Tighten check for company size survey answer (#10646)
This commit is contained in:
@@ -352,6 +352,26 @@ describe('MeController', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('should not flag XSS attempt for `<` sign in company size', async () => {
|
||||
const req = mock<MeRequest.SurveyAnswers>();
|
||||
req.body = {
|
||||
version: 'v4',
|
||||
personalization_survey_submitted_at: '2024-08-06T12:19:51.268Z',
|
||||
personalization_survey_n8n_version: '1.0.0',
|
||||
companySize: '<20',
|
||||
otherCompanyIndustryExtended: ['test'],
|
||||
automationGoalSm: ['test'],
|
||||
usageModes: ['test'],
|
||||
email: 'test@email.com',
|
||||
role: 'test',
|
||||
roleOther: 'test',
|
||||
reportedSource: 'test',
|
||||
reportedSourceOther: 'test',
|
||||
};
|
||||
|
||||
await expect(controller.storeSurveyAnswers(req)).resolves.toEqual({ success: true });
|
||||
});
|
||||
|
||||
test.each([
|
||||
'automationGoalDevops',
|
||||
'companyIndustryExtended',
|
||||
|
||||
Reference in New Issue
Block a user