mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +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() {
|
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