do not sanitize + in email addresses - further fix

* finishes fixing https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/157
This commit is contained in:
Stuart Cardall 2018-04-04 18:57:27 +00:00
parent eb0b67b9b1
commit c2aa474e56
No known key found for this signature in database
GPG key ID: AEB857F1C891D0C6

View file

@ -188,7 +188,7 @@ check_args() {
exit 1
fi
;;
email) if ! echo $arg | grep -E ^[-_\.[:alnum:]]+@[-_\.[:alnum:]]+ 1>/dev/null; then
email) if ! echo $arg | grep -E ^[+-_\.[:alnum:]]+@[-_\.[:alnum:]]+ 1>/dev/null; then
printf "$msg email@domain.com\n"
exit 1
fi