mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed CVE-2017-7234 -- Fixed open redirect vulnerability in views.static.serve().
This is a security fix.
This commit is contained in:
@@ -110,7 +110,7 @@ class StaticTests(SimpleTestCase):
|
||||
|
||||
def test_index(self):
|
||||
response = self.client.get('/%s/' % self.prefix)
|
||||
self.assertContains(response, 'Index of /')
|
||||
self.assertContains(response, 'Index of ./')
|
||||
|
||||
|
||||
class StaticHelperTest(StaticTests):
|
||||
|
||||
Reference in New Issue
Block a user