Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#23900 closed Cleanup/optimization (fixed)

Section on Preventing header injection does not include some imports

Reported by: Kevin Ndung'u Owned by: Kevin Ndung'u
Component: Documentation Version: dev
Severity: Normal Keywords: BadHeaderError, docs
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The documentation section on Preventing header injection https://docs.djangoproject.com/en/1.7/topics/email/#preventing-header-injection, and specifically, the example provided uses HttpResponse and HttpResponseRedirect yet they are not imported.

Change History (7)

comment:1 by Kevin Ndung'u, 9 years ago

Owner: changed from nobody to Kevin Ndung'u
Status: newassigned

comment:2 by Kevin Ndung'u, 9 years ago

Has patch: set

comment:3 by Berker Peksag, 9 years ago

Component: UncategorizedDocumentation
Triage Stage: UnreviewedAccepted
Version: 1.7master

comment:4 by Berker Peksag, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Baptiste Mispelon <bmispelon@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 0d74209ef66111f29f122d5f5fdf8e2964890cc5:

Fixed #23900 -- Added missing imports in code example.

The Preventing header injection example included
classes that are not imported.

Thanks to Collin Anderson and Berker Peksağ for the
reviews.

comment:6 by Baptiste Mispelon <bmispelon@…>, 9 years ago

In 22d292e23b1b60fd5c304b3d867ecf70860e7048:

[1.7.x] Fixed #23900 -- Added missing imports in code example.

The Preventing header injection example included
classes that are not imported.

Thanks to Collin Anderson and Berker Peksağ for the
reviews.

Backport of 0d74209ef66111f29f122d5f5fdf8e2964890cc5 from master.

comment:7 by Baptiste Mispelon <bmispelon@…>, 9 years ago

In db227d9d20d848c56f94ce0ca175fde7e1180c21:

[1.6.x] Fixed #23900 -- Added missing imports in code example.

The Preventing header injection example included
classes that are not imported.

Thanks to Collin Anderson and Berker Peksağ for the
reviews.

Backport of 0d74209ef66111f29f122d5f5fdf8e2964890cc5 from master.

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