#35627: LocaleMiddleware: 'lang_code' exceeds the maximum accepted length
------------------------------+-----------------------------------------
Reporter: Lorenzo Peña | Type: Uncategorized
Status: new | Component: Uncategorized
Version: 5.0 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+-----------------------------------------
Try any Django powered site where LocaleMiddleware is enanled and visit
domain.com/aaaaaaaaaaa.... (where there are 1000 'a').
This line kicks in:
https://github.com/django/django/blob/main/django/utils/translation/trans_real.py#L520
I think the outcome should be a 404 instead of raising ValueError all the
way up.
--
Ticket URL: <https://code.djangoproject.com/ticket/35627>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070190dec55813-9ea62405-a94a-4a51-99a5-73bfd902a659-000000%40eu-central-1.amazonses.com.