Merge pull request #3299 from pi-hole/tweak/allow_()_in_urls

Allow ( and ) in adlist URLs.
This commit is contained in:
Dan Schaper 2020-04-28 11:38:08 -07:00 committed by GitHub
commit 393c7730ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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