Opened 11 years ago

Closed 11 years ago

#1094 closed defect (invalid)

missing html escaping in django admin

Reported by: Armin Ronacher Owned by: Adrian Holovaty
Component: contrib.admin Version: 0.90
Severity: critical Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

If you define a CharField in a model and the django admin displays this in the model overview html isn't escaped.

Ergo this works:

<script>alert("blub");</script>

Change History (2)

comment:1 Changed 11 years ago by Adrian Holovaty

Hi Armin -- In which context does this happen? On the change-list pages? I know we do escape this in most places...

comment:2 Changed 11 years ago by Armin Ronacher

Resolution: invalid
Status: newclosed

argh. i'm sorry. my fault. escaping works but not as i expected. <hello> world results world.

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