mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
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:
parent
bae8a933c6
commit
f04b21bfa9
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