08-Dec-2015, 12:23 PM
Good afternoon.
I have two problems.
1. In the admin can configure the reserved and forbidden usernames. All this works only if the names are entered in Latin letters. Russian names is also perfectly entered and stored in a file reserved_names.txt, but the script does not account for them when the form is submitted - it allows these names.
2. At the bottom of the comment form are questions to check for bots. Here it is written that the answers are not case sensitive (uppercase or lowercase letters). But again, all this is true only for the responses in Latin. If the answer should be in Russian, it requires necessarily take into account the size of the letters. For example, if you type in the answer instead of "земля" - "Земля", the script complains that the answer is wrong. With the Latin words do not.
How to fix the whole thing?
I have two problems.
1. In the admin can configure the reserved and forbidden usernames. All this works only if the names are entered in Latin letters. Russian names is also perfectly entered and stored in a file reserved_names.txt, but the script does not account for them when the form is submitted - it allows these names.
2. At the bottom of the comment form are questions to check for bots. Here it is written that the answers are not case sensitive (uppercase or lowercase letters). But again, all this is true only for the responses in Latin. If the answer should be in Russian, it requires necessarily take into account the size of the letters. For example, if you type in the answer instead of "земля" - "Земля", the script complains that the answer is wrong. With the Latin words do not.
How to fix the whole thing?