Merge branch 'dj18' into postdj18

pull/1/head
eric 2016-08-26 13:37:39 -04:00
commit b72091f5e4
2 changed files with 1 additions and 2 deletions

View File

@ -2372,7 +2372,7 @@ class UserProfile(models.Model):
def unglueitar(self):
# construct the url
gravatar_url = "https://www.gravatar.com/avatar/" + hashlib.md5(self.user.username + '@unglue.it').hexdigest() + "?"
gravatar_url = "https://www.gravatar.com/avatar/" + hashlib.md5(urllib.quote_plus(self.user.username.encode('utf-8')) + '@unglue.it').hexdigest() + "?"
gravatar_url += urllib.urlencode({'d':'wavatar', 's':'50'})
return gravatar_url

View File

@ -60,7 +60,6 @@ oauth2==1.5.211
oauthlib==1.1.2
paramiko==1.14.1
postmonkey==1.0b
pyasn1==0.1.4
pycrypto==2.6
pymarc==3.0.2
pyparsing==2.0.3