mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Allow special characters in email adresses (fix #33)
This commit is contained in:
parent
cf78b8929d
commit
1d44e53f7b
1 changed files with 2 additions and 1 deletions
|
@ -592,7 +592,8 @@ function edit_user ()
|
||||||
ldap:close()
|
ldap:close()
|
||||||
|
|
||||||
local rex = require "rex_pcre"
|
local rex = require "rex_pcre"
|
||||||
local mail_re = rex.new([[^[\w\.\-]+@([^\W_A-Z]+([\-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$]], rex.flags().UTF8)
|
local rex_flags = rex.flags()
|
||||||
|
local mail_re = rex.new([[^[\w\.-+%]+@([^\W_A-Z]+([\-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$]], rex_flags.UTF8 + rex_flags.UCP)
|
||||||
|
|
||||||
local mails = {}
|
local mails = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue