Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a unicode error in caching user info for Trac.

  • Loading branch information...
commit b0b024430be5fb17d69107d8574b2a817fe250af 1 parent e2b3912
Jacob Kaplan-Moss authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django_website/accounts/views.py
1  django_website/accounts/views.py
@@ -41,6 +41,7 @@ def json_user_info(request):
41 41
 
42 42
 def get_user_info(username):
43 43
     c = cache.get_cache('default')
  44
+    username = username.encode('ascii', 'ignore')
44 45
     key = 'trac_user_info:%s' % hashlib.md5(username).hexdigest()
45 46
     info = c.get(key)
46 47
     if info is None:

0 notes on commit b0b0244

Please sign in to comment.
Something went wrong with that request. Please try again.