1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

Updated gravity.sh to allow semicolons

Signed-off-by: Peter Lowe <pgl@yoyo.org>
This commit is contained in:
Peter Lowe 2020-05-26 15:53:01 +02:00
parent b60ec8a48f
commit dd205c55c1

View File

@ -376,7 +376,7 @@ gravity_DownloadBlocklists() {
echo -e " ${INFO} Target: ${url}"
local regex
# Check for characters NOT allowed in URLs
regex="[^a-zA-Z0-9:/?&%=~._()-]"
regex="[^a-zA-Z0-9:/?&%=~._()-;]"
if [[ "${url}" =~ ${regex} ]]; then
echo -e " ${CROSS} Invalid Target"
else