Prevent nullbytes in input data globally (#6071)

* Prevent nullbytes in input data globally

* Only on urlencoded POST

* Split middleware
This commit is contained in:
Raphael Michel
2026-04-27 17:28:36 +02:00
committed by GitHub
parent 1157e2aeed
commit 8426a68760
2 changed files with 14 additions and 0 deletions

View File

@@ -515,6 +515,7 @@ MIDDLEWARE = [
'pretix.control.middleware.AuditLogMiddleware',
'pretix.base.middleware.LocaleMiddleware',
'pretix.base.middleware.SecurityMiddleware',
'pretix.base.middleware.RejectInvalidInputMiddleware',
'pretix.presale.middleware.EventMiddleware',
'pretix.api.middleware.ApiScopeMiddleware',
]