mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 22:00:17 +00:00
Update advanced/Scripts/webpage.sh
Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
This commit is contained in:
parent
26f71e4dbe
commit
369288cc48
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ Options:
|
||||||
# Sanitize email address in case of security issues
|
# Sanitize email address in case of security issues
|
||||||
# Regex from https://stackoverflow.com/a/2138832/4065967
|
# Regex from https://stackoverflow.com/a/2138832/4065967
|
||||||
local regex
|
local regex
|
||||||
regex="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
|
regex="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\$"
|
||||||
if [[ ! "${args[2]}" =~ ${regex} ]]; then
|
if [[ ! "${args[2]}" =~ ${regex} ]]; then
|
||||||
echo -e " ${CROSS} Invalid email address"
|
echo -e " ${CROSS} Invalid email address"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue