mirror of
https://github.com/pretix/pretix.git
synced 2026-05-22 18:04:16 +00:00
Apply suggestions from code review
Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
This commit is contained in:
@@ -316,11 +316,6 @@ def get_all_values_of_cookie(cookie_header, cookie_name):
|
||||
return values
|
||||
|
||||
|
||||
def has_duplicated_csrftoken(request):
|
||||
values = get_all_values_of_cookie(request.headers.get('Cookie'), '__Host-' + settings.CSRF_COOKIE_NAME)
|
||||
return len(values) > 1
|
||||
|
||||
|
||||
def make_delete_morsel(name):
|
||||
m = Morsel()
|
||||
m.set(name, '', '')
|
||||
|
||||
Reference in New Issue
Block a user