Emails with plus signs no longer are rendered with spaces in /accounts/login

(imported from commit 55fff703924ef28060f0b91af3a6f06a1a636197)
This commit is contained in:
Luke Faraone 2012-10-04 14:27:49 -04:00
parent ffcbd1ea7e
commit d8b678c75d

View File

@ -27,6 +27,7 @@ import simplejson
import socket
import re
import hashlib
import urllib
def require_post(view_func):
def _wrapped_view_func(request, *args, **kwargs):
@ -86,7 +87,7 @@ def register(request):
try:
is_unique(email)
except ValidationError:
return HttpResponseRedirect(reverse('django.contrib.auth.views.login') + '?email=' + strip_html(email))
return HttpResponseRedirect(reverse('django.contrib.auth.views.login') + '?email=' + urllib.quote_plus(email))
if request.POST.get('from_confirmation'):
form = RegistrationForm()