CARVIEW |
Select Language
HTTP/2 301
server: nginx
content-type: text/html
location: https://www.djangoproject.com/svntogit/6671/
strict-transport-security: max-age=31536000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
via: 1.1 varnish, 1.1 varnish
accept-ranges: bytes
age: 0
date: Fri, 10 Oct 2025 09:57:52 GMT
x-served-by: cache-fra-eddf8230095-FRA, cache-bom-vanm7210092-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1760090272.301326,VS0,VE133
content-length: 162
HTTP/2 301
server: nginx
content-type: text/html; charset=utf-8
location: https://github.com/django/django/commit/356662cf74
content-language: en
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
referrer-policy: same-origin
cross-origin-opener-policy: same-origin
strict-transport-security: max-age=31536000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-xss-protection: 1; mode=block
access-control-allow-origin: https://code.djangoproject.com
via: 1.1 varnish, 1.1 varnish
accept-ranges: bytes
age: 0
date: Fri, 10 Oct 2025 09:57:52 GMT
x-served-by: cache-fra-eddf8230130-FRA, cache-bom-vanm7210075-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1760090272.497579,VS0,VE137
vary: Accept-Language
content-length: 0
HTTP/2 200
date: Fri, 10 Oct 2025 09:57:53 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/django/django.git
etag: W/"ae77e7e0dfa41417d4a12fd53b693906"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=f74dftyYTS0kHv%2BWgpYfuF81PB0X7OLlC8bHBr%2BkAi9h%2FlWOI2noA7kivZ76dQT34RoIT2sVVIXHyyZhBVANJ6u%2FNb2DhnOAJOt3oTp4Hvsir%2BYNjKJ08dMaL2iuWXjFoZH8hZ59NGQT5Us6SVYnharpm66wVlinVm%2BqUTFEDYzZHX%2FKC%2FAUpTHz3toDhkKVBi2W0TUofxcgM7cIPehDjORGWHyocMu5AKnEn1qVGhEj0v3ZmniICydYVPfaRdN4pAtOABrLGUzxQslJuu1fBQ%3D%3D--Zhlxo0KMK8a%2F1TCo--ge4FxKOb3Vdkkhd1EKGFRw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1083368287.1760090272; Path=/; Domain=github.com; Expires=Sat, 10 Oct 2026 09:57:52 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 10 Oct 2026 09:57:52 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D078:66FF4:179556A:1C32667:68E8D8A0
Implemented auto-escaping of variable output in templates. Fully cont… · django/django@356662c · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: django/contrib/admin/filterspecs.py
Copy file name to clipboardExpand all lines: django/contrib/admin/models.py
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/base_site.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/change_form.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/date_hierarchy.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/delete_confirmation.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/edit_inline_stacked.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/edit_inline_tabular.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/index.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/invalid_setup.html
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Commit 356662c
committed
Implemented auto-escaping of variable output in templates. Fully controllable by template authors and it's possible to write filters and templates that simulataneously work in both auto-escaped and non-auto-escaped environments if you need to. Fixed #2359
See documentation in templates.txt and templates_python.txt for how everything
works.
Backwards incompatible if you're inserting raw HTML output via template variables.
Based on an original design from Simon Willison and with debugging help from Michael Radziej.
git-svn-id: https://code.djangoproject.com/svn/django/trunk@6671 bcc190cf-cafb-0310-a4f2-bffc1f526a371 parent babfe78 commit 356662cCopy full SHA for 356662c
File tree
Expand file treeCollapse file tree
53 files changed
+1202
-322
lines changedFilter options
- django
- contrib
- admin
- templates
- admin_doc
- admin
- widget
- templatetags
- views
- csrf
- databrowse
- plugins
- flatpages
- humanize/templatetags
- markup
- templatetags
- sitemaps/templates
- newforms
- oldforms
- template
- utils
- views
- docs
- tests/regressiontests
- defaultfilters
- forms
- humanize
- templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
53 files changed
+1202
-322
lines changedCollapse file: django/contrib/admin/filterspecs.py
django/contrib/admin/filterspecs.py
Copy file name to clipboardExpand all lines: django/contrib/admin/filterspecs.py+4-2Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
| 13 | + | |
12 | 14 |
| |
13 | 15 |
| |
14 | 16 |
| |
| |||
39 | 41 |
| |
40 | 42 |
| |
41 | 43 |
| |
42 |
| - | |
| 44 | + | |
43 | 45 |
| |
44 | 46 |
| |
45 | 47 |
| |
46 | 48 |
| |
47 | 49 |
| |
48 | 50 |
| |
49 | 51 |
| |
50 |
| - | |
| 52 | + | |
51 | 53 |
| |
52 | 54 |
| |
53 | 55 |
| |
|
Collapse file: django/contrib/admin/models.py
django/contrib/admin/models.py
Copy file name to clipboardExpand all lines: django/contrib/admin/models.py+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
| |||
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
52 |
| - | |
| 53 | + |
Collapse file: django/contrib/admin/templates/admin/base_site.html
django/contrib/admin/templates/admin/base_site.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/base_site.html+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Collapse file: django/contrib/admin/templates/admin/change_form.html
django/contrib/admin/templates/admin/change_form.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/change_form.html+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
| 13 | + | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
|
Collapse file: django/contrib/admin/templates/admin/date_hierarchy.html
django/contrib/admin/templates/admin/date_hierarchy.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/date_hierarchy.html+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Collapse file: django/contrib/admin/templates/admin/delete_confirmation.html
django/contrib/admin/templates/admin/delete_confirmation.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/delete_confirmation.html+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
|
Collapse file: django/contrib/admin/templates/admin/edit_inline_stacked.html
django/contrib/admin/templates/admin/edit_inline_stacked.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/edit_inline_stacked.html+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
Collapse file: django/contrib/admin/templates/admin/edit_inline_tabular.html
django/contrib/admin/templates/admin/edit_inline_tabular.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/edit_inline_tabular.html+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Collapse file: django/contrib/admin/templates/admin/index.html
django/contrib/admin/templates/admin/index.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/index.html+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
| 61 | + | |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
|
Collapse file: django/contrib/admin/templates/admin/invalid_setup.html
django/contrib/admin/templates/admin/invalid_setup.html
Copy file name to clipboardExpand all lines: django/contrib/admin/templates/admin/invalid_setup.html+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
|
You can’t perform that action at this time.
0 commit comments