Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a unicode error in caching user info for Trac.

  • Loading branch information...
commit b0b024430be5fb17d69107d8574b2a817fe250af 1 parent e2b3912
Jacob Kaplan-Moss jacobian authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django_website/accounts/views.py
1  django_website/accounts/views.py
View
@@ -41,6 +41,7 @@ def json_user_info(request):
def get_user_info(username):
c = cache.get_cache('default')
+ username = username.encode('ascii', 'ignore')
key = 'trac_user_info:%s' % hashlib.md5(username).hexdigest()
info = c.get(key)
if info is None:
Please sign in to comment.
Something went wrong with that request. Please try again.