Merge pull request #11200 from edx/mushtaq/ecom2082-fix-enrollment-msg

Escape Course Name in enrolment message
This commit is contained in:
Mushtaq Ali
2016-01-20 20:04:23 +05:00
8 changed files with 38 additions and 12 deletions

View File

@@ -113,7 +113,7 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase, XssT
with script tags.
"""
response = self.client.get(self.url)
self.assert_xss(response, '<script>alert("XSS")</script>')
self.assert_no_xss(response, '<script>alert("XSS")</script>')
@override_settings(PAID_COURSE_REGISTRATION_CURRENCY=['PKR', 'Rs'])
def test_override_currency_settings_in_the_html_response(self):