CARVIEW |
Select Language
HTTP/2 301
server: nginx
content-type: text/html
location: https://www.djangoproject.com/svntogit/16760/
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: Sun, 12 Oct 2025 09:02:55 GMT
x-served-by: cache-fra-etou8220139-FRA, cache-bom-vanm7210091-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1760259776.587416,VS0,VE122
content-length: 162
HTTP/2 301
server: nginx
content-type: text/html; charset=utf-8
location: https://github.com/django/django/commit/5f287f75f2
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: Sun, 12 Oct 2025 09:02:55 GMT
x-served-by: cache-fra-etou8220129-FRA, cache-bom-vanm7210095-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1760259776.766843,VS0,VE126
vary: Accept-Language
content-length: 0
HTTP/2 200
date: Sun, 12 Oct 2025 09:02:56 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/"c8cde0c7a42692045a322bc36d8c7163"
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=uOK7HbBvMW6whJu13rILgnn4Oak4eFL60uKB32FDoS1u21aE2RVkorNnyvBLQucMEDKunyl14aNds9hc5lt4jXFXnUmRtmTOLVkGZMbYFvUGpf4va2PmFIUlBzSpRSL2fR4hSYbMk%2BJfJWG87urvLgDhcuWvdvGI9jZcg0HDWS0vo97fDJWZJER9PQbGP2TF0QtIre%2BgDp2op9D9Ely23K94KuD1%2BvD%2BhTqYXKXNM3BTOe2yO26rVdQ6dDiQGXzHs9u%2BbiG2M7DS9n7vySSOTA%3D%3D--zlYFK%2BV7OWCEP%2FmI--IyqR8PIu29WDCETdsU5E8g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1847991171.1760259775; Path=/; Domain=github.com; Expires=Mon, 12 Oct 2026 09:02:55 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 12 Oct 2026 09:02:55 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: ECBE:2994BB:DBFC7F:1268921:68EB6EBF
Altered the behavior of URLField to avoid a potential DOS vector, and… · django/django@5f287f7 · GitHub
Copy file name to clipboardExpand all lines: django/db/models/fields/__init__.py
Copy file name to clipboardExpand all lines: docs/internals/deprecation.txt
Copy file name to clipboardExpand all lines: tests/modeltests/validation/__init__.py
Copy file name to clipboardExpand all lines: tests/modeltests/validation/models.py
Copy file name to clipboardExpand all lines: tests/modeltests/validation/tests.py
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Commit 5f287f7
committed
Altered the behavior of URLField to avoid a potential DOS vector, and to avoid potential leakage of local filesystem data. A security announcement will be made shortly.
git-svn-id: https://code.djangoproject.com/svn/django/trunk@16760 bcc190cf-cafb-0310-a4f2-bffc1f526a371 parent 33076af commit 5f287f7Copy full SHA for 5f287f7
File tree
Expand file treeCollapse file tree
11 files changed
+107
-43
lines changedFilter options
- django
- core
- db/models/fields
- docs
- internals
- ref
- forms
- models
- releases
- tests
- modeltests/validation
- regressiontests/forms/tests
Expand file treeCollapse file tree
11 files changed
+107
-43
lines changedCollapse file: django/core/validators.py
+39-18Lines changed: 39 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
1 | 2 |
| |
2 | 3 |
| |
3 | 4 |
| |
| |||
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 | 45 |
| |
49 | 46 |
| |
50 | 47 |
| |
| |||
54 | 51 |
| |
55 | 52 |
| |
56 | 53 |
| |
57 |
| - | |
| 54 | + | |
| 55 | + | |
58 | 56 |
| |
59 | 57 |
| |
60 | 58 |
| |
| |||
79 | 77 |
| |
80 | 78 |
| |
81 | 79 |
| |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 |
| |
83 | 88 |
| |
84 | 89 |
| |
| |||
90 | 95 |
| |
91 | 96 |
| |
92 | 97 |
| |
93 |
| - | |
94 |
| - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
95 | 127 |
| |
96 | 128 |
| |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 | 129 |
| |
109 | 130 |
| |
110 | 131 |
| |
|
Collapse file: django/db/models/fields/__init__.py
django/db/models/fields/__init__.py
Copy file name to clipboardExpand all lines: django/db/models/fields/__init__.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1178 | 1178 |
| |
1179 | 1179 |
| |
1180 | 1180 |
| |
1181 |
| - | |
| 1181 | + | |
1182 | 1182 |
| |
1183 | 1183 |
| |
1184 | 1184 |
| |
|
Collapse file: docs/internals/deprecation.txt
docs/internals/deprecation.txt
Copy file name to clipboardExpand all lines: docs/internals/deprecation.txt+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
118 | 123 |
| |
119 | 124 |
| |
120 | 125 |
| |
|
Collapse file: docs/ref/forms/fields.txt
+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
799 | 799 |
| |
800 | 800 |
| |
801 | 801 |
| |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
802 | 807 |
| |
803 | 808 |
| |
804 | 809 |
| |
|
Collapse file: docs/ref/models/fields.txt
+10-3Lines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
872 | 872 |
| |
873 | 873 |
| |
874 | 874 |
| |
875 |
| - | |
| 875 | + | |
876 | 876 |
| |
877 | 877 |
| |
878 | 878 |
| |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
879 | 885 |
| |
880 | 886 |
| |
881 |
| - | |
882 |
| - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
883 | 890 |
| |
884 | 891 |
| |
885 | 892 |
| |
|
Collapse file: docs/ref/settings.txt
+4-2Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2012 | 2012 |
| |
2013 | 2013 |
| |
2014 | 2014 |
| |
2015 |
| - | |
2016 |
| - | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
2017 | 2019 |
| |
2018 | 2020 |
| |
2019 | 2021 |
| |
|
Collapse file: docs/releases/1.4.txt
+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
519 | 519 |
| |
520 | 520 |
| |
521 | 521 |
| |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
522 | 530 |
| |
523 | 531 |
| |
524 | 532 |
| |
|
Collapse file: tests/modeltests/validation/__init__.py
tests/modeltests/validation/__init__.py
Copy file name to clipboardExpand all lines: tests/modeltests/validation/__init__.py+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 |
| |
|
Collapse file: tests/modeltests/validation/models.py
tests/modeltests/validation/models.py
Copy file name to clipboardExpand all lines: tests/modeltests/validation/models.py+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
|
Collapse file: tests/modeltests/validation/tests.py
tests/modeltests/validation/tests.py
Copy file name to clipboardExpand all lines: tests/modeltests/validation/tests.py+20-13Lines changed: 20 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 |
| |
2 | 4 |
| |
3 | 5 |
| |
| |||
14 | 16 |
| |
15 | 17 |
| |
16 | 18 |
| |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
17 | 27 |
| |
18 | 28 |
| |
19 | 29 |
| |
| |||
54 | 64 |
| |
55 | 65 |
| |
56 | 66 |
| |
| 67 | + | |
57 | 68 |
| |
58 |
| - | |
59 |
| - | |
| 69 | + | |
| 70 | + | |
60 | 71 |
| |
61 | 72 |
| |
62 |
| - | |
| 73 | + | |
63 | 74 |
| |
64 | 75 |
| |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 |
| |
73 |
| - | |
74 |
| - | |
75 |
| - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
76 | 83 |
| |
77 | 84 |
| |
78 | 85 |
| |
|
You can’t perform that action at this time.
0 commit comments