utf-8 support

This commit is contained in:
Serghey Rodin 2013-01-20 02:33:34 +02:00
commit 4469398beb

View file

@ -556,7 +556,7 @@ validate_format_email() {
# Username
validate_format_username() {
if ! [[ "$1" =~ ^[a-zA-Z0-9]+([\.|_|-][a-zA-Z0-9]+)?$ ]]; then
if ! [[ "$1" =~ ^[[:alnum:]]+([\.|_|-][[:alnum:]]+)?$ ]]; then
echo "Error: $2 $1 is not valid"
log_event "$E_INVALID" "$EVENT"
exit $E_INVALID