Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Provisional workaround to sanitize rating comments #323

Merged
merged 1 commit into from
Dec 21, 2014

Conversation

migeruhito
Copy link
Contributor

This solves (but not in an optimal manner) Issue #318. This problem arises because the jinja2 automatic autoescape (flask default) is disabled in the Notebook. The particular Notebook implementation needs this feature disabled in multiple points, despite it is a major security threat. This might be (as usually occurs) related to Issue #319.

This commit only sanitizes the particular point causing the problem, but automatic autoescape remains deactivated. Not good. I'm working in a better but more complex solution.

@kcrisman
Copy link
Member

This works great for several such bad situations, and is clearly the "correct" way to fix this particular problem. Thank you! I will look at #324 eventually but will need to think more about when we want to sanitize and when not.

kcrisman added a commit that referenced this pull request Dec 21, 2014
Provisional workaround to sanitize rating comments
@kcrisman kcrisman merged commit 804df5b into sagemath:master Dec 21, 2014
@migeruhito migeruhito deleted the rating_comments branch December 21, 2014 11:25
migeruhito added a commit to migeruhito/sagenb that referenced this pull request Jan 29, 2015
migeruhito added a commit to migeruhito/sagenb that referenced this pull request Jan 29, 2015
migeruhito added a commit to migeruhito/sagenb that referenced this pull request Sep 24, 2015
migeruhito added a commit to migeruhito/sagenb that referenced this pull request Oct 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants