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

Allow ( and ) in adlist URLs.
This commit is contained in:
Dan Schaper
2020-04-28 11:46:32 -07:00
committed by GitHub
+1 -1
View File
@@ -649,7 +649,7 @@ if ($_POST['action'] == 'get_groups') {
}
foreach ($addresses as $address) {
if(preg_match("/[^a-zA-Z0-9:\/?&%=~._-]/", $address) !== 0) {
if(preg_match("/[^a-zA-Z0-9:\/?&%=~._()-]/", $address) !== 0) {
throw new Exception('Invalid adlist URL');
}