Merge pull request #1102 from pi-hole/fix/domains_lower_case

Ensure added domains are lower-case.
This commit is contained in:
DL6ER
2019-12-28 16:46:09 +01:00
committed by GitHub

View File

@@ -34,10 +34,12 @@ $db = SQLite3_connect($GRAVITYDB, SQLITE3_OPEN_READWRITE);
switch($list) {
case "white":
$domains = array_map('strtolower', $domains);
echo add_to_table($db, "domainlist", $domains, $comment, false, false, ListType::whitelist);
break;
case "black":
$domains = array_map('strtolower', $domains);
echo add_to_table($db, "domainlist", $domains, $comment, false, false, ListType::blacklist);
break;