From 90a72ddba690c99f10d0e044cc30bf0637d1292d Mon Sep 17 00:00:00 2001 From: Ayub-khan Date: Wed, 16 Mar 2016 18:57:45 +0500 Subject: [PATCH] Properly escaping fullname To prevent XSS attacks, we now properly escape any string containing the user's fullname. Enumerated by searching webview.py for "fullname", and "git grep"-ing any occurrences. This also exposed some unused strings, which I deleted for clarity. --- lms/templates/certificates/_accomplishment-banner.html | 2 +- lms/templates/certificates/_accomplishment-rendering.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lms/templates/certificates/_accomplishment-banner.html b/lms/templates/certificates/_accomplishment-banner.html index 2ca86733c3..eba7ee8d9c 100644 --- a/lms/templates/certificates/_accomplishment-banner.html +++ b/lms/templates/certificates/_accomplishment-banner.html @@ -40,7 +40,7 @@ from django.template.defaultfilters import escapejs