#34283: Missing parameter escaping in admin filters.js
-----------------------------------------+------------------------
Reporter: ef-end-y | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 4.1
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 |
-----------------------------------------+------------------------
I am using ukrainian language in django admin. This language has an
apostrophe that users often write as '.
My code:
{{{
class HasMasterFilter(admin.SimpleListFilter):
title = "Пов'язаний?"
}}}
leads to error in /django/contrib/admin/static/admin/js/filters.js at the
line:
{{{
const detailElement = document.querySelector(`[data-filter-
title='${key}']`);
}}}
it's needed to escape the value in key
--
Ticket URL: <https://code.djangoproject.com/ticket/34283>
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/01070185da5b0b56-72b322c0-b7cf-4782-b90a-ea23cdf3f6d6-000000%40eu-central-1.amazonses.com.