News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Login with non English alphabet

Started by A.M.A, March 18, 2004, 05:29:54 PM

Previous topic - Next topic

A.M.A

Still cant register with none English alphabet user name.. in my case Arabic. will the same fix for yabbse work with SMF in :
if (!preg_match('/^[\s0-9A-Za-z#,-\.:=?@^_äöéèöüçåãâáàßêìíîïðñòóôõøùúûýÿ]+$/', $_POST['user']) || $_POST['user'] == '_' || $_POST['user'] == '|')
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

A.M.A

I've changed the code:

!preg_match('/^[\s0-9A-Za-z#,-\.:=?@^_äöéèöüçåãâáàßêìíîïðñòóôõøùúûýÿ]+$/'
to
preg_match('/^[\<\>\+\$\[\]~!@#%^&\*\(\)]+$/'

in both Register.php and LogInOut.php and it worked with none English alphabet! but is that right!! i.e. will it cause any security risk or something!
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

Advertisement: