Skip to content
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

Remove markdown filter from utils #286

Merged
merged 3 commits into from
Nov 16, 2016
Merged

Remove markdown filter from utils #286

merged 3 commits into from
Nov 16, 2016

Conversation

pcraig3
Copy link
Contributor

@pcraig3 pcraig3 commented Nov 7, 2016

We used to be able to use a |markdown filter in our jinja templates which would turn markdown formatted strings into Markup strings as well as permit HTML tags.
This opened us up to vulnerabilities where untrusted input might end up going through one of these filters and expose us to a cross-site scripting (XSS) exploit.

Going forward, markdown formatted text will be allowed in specific fields (documented in the README for digitalmarketplace-frameworks) and then rendered by TemplateFields, handled by the Content Loader.

Most, if not all of, the other repos have `Makefile`s.
This one is a copy of the one in -frameworks.
This removes the markdown filter from our jinja templates going
forward, so it's a breaking change. 💔
Domuments the removal of the markdown filter in README, as this
is a breaking change.
@allait
Copy link
Contributor

allait commented Nov 14, 2016

👍

@pcraig3 pcraig3 merged commit ff7a80b into master Nov 16, 2016
@pcraig3 pcraig3 deleted the pc-make-markdown-missing branch November 16, 2016 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants