-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Studio homepage escaping #11551
Studio homepage escaping #11551
Conversation
@robrap Does this need a test ? I think not, because test for checking template is safe would have been previously written. |
da7ceff
to
0b19a40
Compare
@awaisdar001 @adampalay Please a review |
👍 |
@mushtaqak The following are the types of changes to look out for as you switch to safe by default:
|
That is great Robert. I will implement these when I come tomorrow morning :-) |
@robrap May you please see |
@@ -1,4 +1,8 @@ | |||
<%! from django.utils.translation import ugettext as _ %> | |||
<%! | |||
from openedx.core.djangolib.markup import ugettext as _ |
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.
Minor: Mostly we have been doing this on one line:
from openedx.core.djangolib.markup import HTML, ugettext as _
@mushtaqak Getting closer. Please let me know when the final changes are done and when the checks are all passing. One last issue is if you want to search for |
@robrap all checks passed, one final pass for review :) |
link_start='<a href="#" class="action-reload">', | ||
link_end='</a>', | ||
)}</p> | ||
link_start=HTML('<a href="#" class="action-reload">'), |
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.
Minor: Other code had a 4 space tab.
👍 It's up to you if you want to fix the minor indent issue. I don't need to re-review. Thank you. |
d3aca31
to
7a9991e
Compare
TNL-4006
Make the entire template safe by default.
@robrap Please have a review.