Merge pull request #1392 from pi-hole/url-check

Allow semi colons in URLS
This commit is contained in:
DL6ER
2020-05-26 23:05:32 +02:00
committed by GitHub
+1 -1
View File
@@ -674,7 +674,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('<strong>Invalid adlist URL ' . htmlentities($address) . '</strong><br>'.
'Added ' . $added . " out of ". $total . " adlists");
}