summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2012-03-13 03:48:03 +0000
committerJannis Leidel <jannis@leidel.info>2012-03-13 03:48:03 +0000
commit7487c74020f97829e466c7efbdf7bd9e5fa90b1b (patch)
tree4adb2f7367f5b9832e78fee5a370db136f6f76f9 /django
parentd174216587197dcc6c4c9abcacb8e428a1f078bf (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.py2
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." %