Skip to content

Commit

Permalink
Merge pull request pi-hole#3299 from pi-hole/tweak/allow_()_in_urls
Browse files Browse the repository at this point in the history
Allow ( and ) in adlist URLs.
  • Loading branch information
dschaper authored Apr 28, 2020
2 parents 4f0e47e + 288d487 commit 393c773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gravity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 393c773

Please sign in to comment.