diff options
| author | Jannis Leidel <jannis@leidel.info> | 2012-03-12 20:28:09 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2012-03-12 20:28:09 +0000 |
| commit | 3a5f9cd1ae8a2c7101f141d9730878abb74ec92f (patch) | |
| tree | 46660c72cc9302cdffb4baeea7a9b5b5ac89e986 /django | |
| parent | ebc6fc9354c857bc0ac00895175c2575b01b1bd7 (diff) | |
Fixed #17861 -- Took care of special characters when creating the staticfiles storage cache keys. Many thanks to Preston Holmes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17688 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 fe35a3163e..97e7e9c494 100644 --- a/django/contrib/staticfiles/storage.py +++ b/django/contrib/staticfiles/storage.py @@ -95,7 +95,7 @@ class CachedFilesMixin(object): return urlunsplit(unparsed_name) def cache_key(self, name): - return u'staticfiles:cache:%s' % name + return u'staticfiles:%s' % hashlib.md5(smart_str(name)).hexdigest() def url(self, name, force=False): """ |
