mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
few more tests
This commit is contained in:
parent
e09182ff53
commit
3d3d0ffa53
|
@ -212,7 +212,7 @@ class SearchFilterTests(TestCase):
|
|||
assert len(response.data) == 0
|
||||
|
||||
def test_search_field_with_dangerous_value(self):
|
||||
payload = {'search': 'select * from user where 1=1'}
|
||||
payload = {'search': 'Exploit%20String:%200%0d%0a%00%3Cscript%20src=//example.com%3E'}
|
||||
view = SearchListViewSet.as_view({'get': 'list'})
|
||||
request = factory.get('/', payload)
|
||||
response = view(request)
|
||||
|
|
Loading…
Reference in New Issue
Block a user