Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#2006 closed task (fixed)

[patch] admin doesn't html-quote strings in breadcrumbs and filters

Reported by: mhf@… Owned by: Adrian Holovaty
Component: Testing framework Version: new-admin
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Adrian Holovaty)

When the admin site uses a models str()-method, it doesn't html-quote it.
For example:

    def __str__(self):
        return '%s <%s>' %(self.name, self.email)

would show up in the admin site as just the name, because my browser thinks <email> is a bad tag.

Attachments (1)

patch.diff (1.3 KB ) - added by mhf@… 19 years ago.
patch

Download all attachments as: .zip

Change History (6)

by mhf@…, 19 years ago

Attachment: patch.diff added

patch

comment:1 by anonymous, 19 years ago

Summary: django admin doesn't quote str()-output in templates.[patch] admin doesn't html-quote strings in breadcrumbs and filters

comment:2 by Adrian Holovaty, 19 years ago

Description: modified (diff)

(Fixed formatting in description.)

comment:3 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [3023]) Fixed #2006 -- Admin now quotes strings in breadcrumbs and filters. Thanks, mhf@…

comment:4 by anonymous, 18 years ago

Component: Admin interfaceUnit test system
milestone: Version 0.92
priority: normalhighest
Severity: minormajor
Type: defecttask
Version: new-admin

comment:5 by Adrian Holovaty, 18 years ago

milestone: Version 0.92

Milestone Version 0.92 deleted

Note: See TracTickets for help on using tickets.
Back to Top