so some guy came in my hotel and his name is ªµµª < which becomes monsterface fish fish monsterface, and i was wondering why he can register like this and how i disable it in REVCMS
so some guy came in my hotel and his name is ªµµª < which becomes monsterface fish fish monsterface, and i was wondering why he can register like this and how i disable it in REVCMS
In this case, Regular Expressions is the most efficient way to "filter" special characters etc.
Have a look at preg_replace function at php.net
Also, try this pattern /[^a-zA-Z0-9]/
Sorry for a short version answer, sent from my phone.
Example:
//PHP Code:$username = preg_replace("/[^a-zA-Z0-9]+/", "", $_POST['username']);
Sent from an android device
Last edited by 3M1L; 11-09-15 at 12:28 PM. Reason: Added an example.
Close thread, has been fixed and shared for all REVCMS users.
https://forum.ragezone.com/f353/revc...7/#post8495130