mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
Merge pull request #158 from itoffshore/alpine
do not sanitize + in email addresses
This commit is contained in:
commit
25b7c1d634
1 changed files with 2 additions and 2 deletions
|
@ -174,8 +174,8 @@ sanitize_url() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sanitize_email() {
|
sanitize_email() {
|
||||||
echo $1 |tr -cd '[:alnum:] [=@=] [=.=] [=-=] [=_=]' \
|
echo $1 |tr -cd '[:alnum:] [=@=] [=.=] [=-=] [=_=] [=+=]' \
|
||||||
|tr -s '@-_.' |awk '{print tolower($0)}'
|
|tr -s '@-_.+' |awk '{print tolower($0)}'
|
||||||
}
|
}
|
||||||
|
|
||||||
check_args() {
|
check_args() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue