mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed many spelling mistakes in code, comments, and docs.
This commit is contained in:
parent
b6dd0afead
commit
93452a70e8
61 changed files with 187 additions and 187 deletions
|
@ -543,7 +543,7 @@ class LoginTest(AuthViewsTestCase):
|
|||
for bad_url in ('http://example.com',
|
||||
'http:///example.com',
|
||||
'https://example.com',
|
||||
'ftp://exampel.com',
|
||||
'ftp://example.com',
|
||||
'///example.com',
|
||||
'//example.com',
|
||||
'javascript:alert("XSS")'):
|
||||
|
@ -564,7 +564,7 @@ class LoginTest(AuthViewsTestCase):
|
|||
# These URLs *should* still pass the security check
|
||||
for good_url in ('/view/?param=http://example.com',
|
||||
'/view/?param=https://example.com',
|
||||
'/view?param=ftp://exampel.com',
|
||||
'/view?param=ftp://example.com',
|
||||
'view/?param=//example.com',
|
||||
'https://testserver/',
|
||||
'HTTPS://testserver/',
|
||||
|
@ -830,7 +830,7 @@ class LogoutTest(AuthViewsTestCase):
|
|||
for bad_url in ('http://example.com',
|
||||
'http:///example.com',
|
||||
'https://example.com',
|
||||
'ftp://exampel.com',
|
||||
'ftp://example.com',
|
||||
'///example.com',
|
||||
'//example.com',
|
||||
'javascript:alert("XSS")'):
|
||||
|
@ -849,7 +849,7 @@ class LogoutTest(AuthViewsTestCase):
|
|||
# These URLs *should* still pass the security check
|
||||
for good_url in ('/view/?param=http://example.com',
|
||||
'/view/?param=https://example.com',
|
||||
'/view?param=ftp://exampel.com',
|
||||
'/view?param=ftp://example.com',
|
||||
'view/?param=//example.com',
|
||||
'https://testserver/',
|
||||
'HTTPS://testserver/',
|
||||
|
@ -1016,6 +1016,6 @@ class UUIDUserTests(TestCase):
|
|||
})
|
||||
self.assertRedirects(response, user_change_url)
|
||||
row = LogEntry.objects.latest('id')
|
||||
self.assertEqual(row.user_id, 1) # harcoded in CustomUserAdmin.log_change()
|
||||
self.assertEqual(row.user_id, 1) # hardcoded in CustomUserAdmin.log_change()
|
||||
self.assertEqual(row.object_id, str(u.pk))
|
||||
self.assertEqual(row.change_message, 'Changed password.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue