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.
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.
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.