do not sanitize + in email addresses

* sanitizing + breaks google aliases

  fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/157
This commit is contained in:
Stuart Cardall 2018-04-03 18:26:53 +00:00
parent bae8a933c6
commit f04b21bfa9
No known key found for this signature in database
GPG key ID: AEB857F1C891D0C6

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() {