Warning: The author of this contribution does not provide support for it anymore.

Anti-Bot Question

Can't use umlauts like ä or ö in answer - Anti-Bot Question

Can't use umlauts like ä or ö in answer

by matz » Fri Mar 25, 2011 10:19 am

Hi,

in the German language umlauts are used very often. If there is a non standard letter in the answer (e.g. "Käsebrot"), it will be decoded as question mark ("K?sebrot"). To fix it, you should replace

'AB_Question' => strtolower(request_var('AB_Question', '')),


with

'AB_Question' => strtolower(utf8_normalize_nfc(request_var('AB_Question', '', true))),


in ucp_register.php. This should be in line 124 in install.xml.


Regards
Matz
matz
Registered User
Posts: 1
Joined: Tue Mar 22, 2011 7:08 pm