google-code-export / student-worker-relational-database

Automatically exported from code.google.com/p/student-worker-relational-database
1 stars 1 forks source link

LDAP and Google Auth both don't handle non-breaking spaces #280

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How to reproduce: Open Libreoffice 3.0+. Press ctrl-shift-space to create a non 
breaking space which is different than a normal space. Enter it in the password 
field and you get an error 
'ascii' codec can't encode character u'\xa0' in position 17: ordinal not in 
range(128) on 

Need some type of validation to strip out these characters in both LDAP groups 
and Google LDAP.

We should fork LDAP groups since the project is dead and doesn't fix bugs 
anymore.

Original issue reported on code.google.com by dmbs...@gmail.com on 11 Feb 2012 at 7:30

GoogleCodeExporter commented 9 years ago
Fixed in google auth
evilstring.replace(u'\xa0',u'')

Original comment by dmbs...@gmail.com on 11 Feb 2012 at 7:45

GoogleCodeExporter commented 9 years ago
submitted patch to ldap-groups. Hacked code on production server. Dev says he 
will publish a new stable version soon to pypi.

http://code.google.com/p/django-ldap-groups/issues/detail?id=11

Original comment by dmbs...@gmail.com on 17 Feb 2012 at 6:18