Opened 5 years ago
Last modified 5 years ago
#32899 closed Cleanup/optimization
enhance JSONResponse safe=True kwarg docs — at Initial Version
| Reported by: | Thomas Grainger | Owned by: | Simon Willison |
|---|---|---|---|
| Component: | Documentation | Version: | 3.2 |
| Severity: | Normal | Keywords: | |
| Cc: | Simon Willison | Triage Stage: | Ready for checkin |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
currently JSONResponse documents a safe kwarg
`
Data to be dumped into json. By default only
dictobjects
are allowed to be passed due to a security flaw before EcmaScript 5. See
thesafeparameter for more information.
`
EcmaScript 5 is mostly dead, but there are other advantages to only sending dicts, see https://twitter.com/simonw/status/1410682522908856320
Note:
See TracTickets
for help on using tickets.