diff options
| author | Jannis Leidel <jannis@leidel.info> | 2012-03-13 03:48:03 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2012-03-13 03:48:03 +0000 |
| commit | 7487c74020f97829e466c7efbdf7bd9e5fa90b1b (patch) | |
| tree | 4adb2f7367f5b9832e78fee5a370db136f6f76f9 /django | |
| parent | d174216587197dcc6c4c9abcacb8e428a1f078bf (diff) | |
Fixed #17865 -- Strip whitespaces from the paths when using the CachedStaticFilesStorage backend.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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 97e7e9c494..67ce5dccee 100644 --- a/django/contrib/staticfiles/storage.py +++ b/django/contrib/staticfiles/storage.py @@ -67,7 +67,7 @@ class CachedFilesMixin(object): def hashed_name(self, name, content=None): parsed_name = urlsplit(unquote(name)) - clean_name = parsed_name.path + clean_name = parsed_name.path.strip() if content is None: if not self.exists(clean_name): raise ValueError("The file '%s' could not be found with %r." % |
