Merge pull request #158 from itoffshore/alpine

do not sanitize + in email addresses
This commit is contained in:
Stuart Cardall 2018-04-03 19:41:03 +01:00 committed by GitHub
commit 25b7c1d634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,8 +174,8 @@ sanitize_url() {
}
sanitize_email() {
echo $1 |tr -cd '[:alnum:] [=@=] [=.=] [=-=] [=_=]' \
|tr -s '@-_.' |awk '{print tolower($0)}'
echo $1 |tr -cd '[:alnum:] [=@=] [=.=] [=-=] [=_=] [=+=]' \
|tr -s '@-_.+' |awk '{print tolower($0)}'
}
check_args() {