Allow ( and ) in adlist URLs.

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/3299/head
DL6ER 4 years ago
parent d42785a3bf
commit 288d487fc0
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

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

Loading…
Cancel
Save