-
-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sanitise HTML attributes in the database #12943
Conversation
We don't need to run the sanitiser each time we read an attribute. It's a waste of time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect👌
# We prefer to keep migrations isolated and not affected by changing | ||
# application code in the future. | ||
# If we need to change the sanitizer in the future we may need a new | ||
# migration (not change the old one) to sanitise the data properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great documentation 🏅
Hey @mkllnk , Changed the mentioned attributes, before staging the PR and verified them after staging, under the following URLs:
Spotted nothing unusual, merging! |
ℹ️ Please use project Discover Regenerative (Macdoch pt 2): #3A. Tech - OFN & OFN/DFC Endpoints to track work on this issue.
What? Why?
We introduced HTML sanitisation on attribute assignment before but there was still dirty data in the database. This pull request sanitises the database. That allows us to remove the sanitisation every time we read one of the HTML attributes.
What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates