Skip to content

Commit 0ea9976

Browse files
added change log to the PR
1 parent b3e600a commit 0ea9976

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ For each PR made, an entry should be added to this changelog. It should contain
1212
- etc.
1313

1414
## Changelog
15+
16+
- 1217-add-data-validation-to-the-feedback-form-api-to-restrict-html-content
17+
- Description: The feedback form API does not currently have any form of data validation on the backend which makes it easy for the user with the endpoint to send in data with html tags. We need to have a validation scheme on the backend to protect this from happening.
18+
- Changes:
19+
- Defined a class `HTMLFreeCharField` which inherits `serializers.CharField`
20+
- Used regex to catch any HTML content comming in as an input to form fields
21+
- Called this class within the serializer for necessary fields

0 commit comments

Comments
 (0)