mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Emails with plus signs no longer are rendered with spaces in /accounts/login
(imported from commit 55fff703924ef28060f0b91af3a6f06a1a636197)
This commit is contained in:
parent
ffcbd1ea7e
commit
d8b678c75d
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user