mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +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() {
|
||||
echo $1 |tr -cd '[:alnum:] [=@=] [=.=] [=-=] [=_=]' \
|
||||
|tr -s '@-_.' |awk '{print tolower($0)}'
|
||||
echo $1 |tr -cd '[:alnum:] [=@=] [=.=] [=-=] [=_=] [=+=]' \
|
||||
|tr -s '@-_.+' |awk '{print tolower($0)}'
|
||||
}
|
||||
|
||||
check_args() {
|
||||
|
|
Loading…
Add table
Reference in a new issue