mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-24 14:29:23 +00:00
Fix security breach
This commit is contained in:
parent
63953587f8
commit
820b81d256
@ -3,6 +3,7 @@ import { DatabaseHelper, JoinType } from "./DatabaseHelper";
|
|||||||
import { NewSurvey } from "../entities/NewSurvey";
|
import { NewSurvey } from "../entities/NewSurvey";
|
||||||
import { mysql_date } from "../utils/DateUtils";
|
import { mysql_date } from "../utils/DateUtils";
|
||||||
import { SurveyResponse } from "../entities/SurveyResponse";
|
import { SurveyResponse } from "../entities/SurveyResponse";
|
||||||
|
import { removeHTMLNodes } from "../utils/StringUtils";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Survey helper
|
* Survey helper
|
||||||
@ -67,7 +68,7 @@ export class SurveyHelper {
|
|||||||
await DatabaseHelper.InsertRow(SURVEY_CHOICES_TABLE, {
|
await DatabaseHelper.InsertRow(SURVEY_CHOICES_TABLE, {
|
||||||
ID_sondage: surveyID,
|
ID_sondage: surveyID,
|
||||||
date_creation: mysql_date(),
|
date_creation: mysql_date(),
|
||||||
Choix: choice
|
Choix: removeHTMLNodes(choice)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user