Alt cods as a username, how to disable it?

Results 1 to 3 of 3
  1. #1
    Wanheda Funsolit is offline
    MemberRank
    Feb 2012 Join Date
    SwedenLocation
    259Posts

    angry Alt cods as a username, how to disable it?

    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


  2. #2
    apt-get install xcowsay 3M1L is offline
    MemberRank
    Jul 2012 Join Date
    SwedenLocation
    268Posts

    Re: Alt cods as a username, how to disable it?

    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.

  3. #3
    Wanheda Funsolit is offline
    MemberRank
    Feb 2012 Join Date
    SwedenLocation
    259Posts

    Re: Alt cods as a username, how to disable it?

    Close thread, has been fixed and shared for all REVCMS users.
    https://forum.ragezone.com/f353/revc...7/#post8495130



Advertisement