Fix invalid usage of re.split() on Python 3.13

This commit is contained in:
Raphael Michel
2025-01-03 15:21:15 +01:00
parent f1bdd3b7af
commit e74793994a

View File

@@ -743,7 +743,7 @@ class SSOLoginReturnView(RedirectBackMixin, View):
popup_origin,
)
nonce, redirect_to = re.split("[%#§]", request.GET['state'], 1) # Allow § and # for backwards-compatibility for a while
nonce, redirect_to = re.split("[%#§]", request.GET['state'], maxsplit=1) # Allow § and # for backwards-compatibility for a while
if nonce != request.session.get(f'pretix_customerauth_{self.provider.pk}_nonce'):
return self._fail(