diff options
| author | Adam Zapletal <adamzap@gmail.com> | 2024-02-23 22:36:15 -0600 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-02-28 06:24:24 +0100 |
| commit | 107aa76bcf5d5599460fdce61dfa15bb147acc62 (patch) | |
| tree | 2c84920ff7630a1914698e3e65ef9a1c42b2ecca /django | |
| parent | ef2434f8508551fee183079ab471b1dc325c7acb (diff) | |
Fixed #29022 -- Fixed handling protocol-relative URLs in ManifestStaticFilesStorage when STATIC_URL is set to /.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/staticfiles/storage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py index 85172ea42d..191fe3cbb5 100644 --- a/django/contrib/staticfiles/storage.py +++ b/django/contrib/staticfiles/storage.py @@ -221,7 +221,7 @@ class HashedFilesMixin: url = matches["url"] # Ignore absolute/protocol-relative and data-uri URLs. - if re.match(r"^[a-z]+:", url): + if re.match(r"^[a-z]+:", url) or url.startswith("//"): return matched # Ignore absolute URLs that don't point to a static file (dynamic |
