Customizing SMF > SMF Coding Discussion

Login with non English alphabet

(1/1)

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 :

--- Code: --- if (!preg_match('/^[\s0-9A-Za-z#,-\.:=?@^_äöéèöüçåãâáàßêìíîïðñòóôõøùúûýÿ]+$/', $_POST['user']) || $_POST['user'] == '_' || $_POST['user'] == '|')
--- End code ---

A.M.A:
I've changed the code:


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

--- Code: ---preg_match('/^[\<\>\+\$\[\]~!@#%^&\*\(\)]+$/'
--- End code ---

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!

Navigation

[0] Message Index

Go to full version