Anti spam and accentuate letters when registering to the forum

Reported by TREMEL François on 2011-11-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Widelands Website
Medium
Unassigned

Bug Description

When I'm registering to the forum, the anti spam system show me words with accent (letters like é, è,..).
This is not a problem for me as I'm French and my keyboard does have the accentuate letters. But when I registered a server error occur. I try couple of time with the same result. Then I request to change the words up to have words without accent and I finally achieve to register.

SirVer (sirver) wrote :

Thanks for reporting. This is the traceback I got on the server:

Traceback (most recent call last):

 File "/var/www/django_projects/wlwebsite/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/var/www/django_projects/wlwebsite/code/widelands/mainpage/views.py", line 30, in register
   if form.is_valid():

 File "/var/www/django_projects/wlwebsite/lib/python2.6/site-packages/django/forms/forms.py", line 121, in is_valid
   return self.is_bound and not bool(self.errors)

 File "/var/www/django_projects/wlwebsite/lib/python2.6/site-packages/django/forms/forms.py", line 112, in _get_errors
   self.full_clean()

 File "/var/www/django_projects/wlwebsite/lib/python2.6/site-packages/django/forms/forms.py", line 267, in full_clean
   self._clean_fields()

 File "/var/www/django_projects/wlwebsite/lib/python2.6/site-packages/django/forms/forms.py", line 284, in _clean_fields
   value = field.clean(value)

 File "/var/www/django_projects/wlwebsite/code/widelands/wlrecaptcha/forms.py", line 76, in clean
   value = validate_recaptcha(self.remote_ip, challenge, response)

 File "/var/www/django_projects/wlwebsite/code/widelands/wlrecaptcha/forms.py", line 111, in validate_recaptcha
   response=response))

 File "/usr/lib/python2.6/urllib.py", line 1267, in urlencode
   v = quote_plus(str(v))

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 7: ordinal not in range(128)

Changed in widelands-website:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers