mirror of
https://github.com/pi-hole/web.git
synced 2025-12-26 13:36:22 +00:00
Merge pull request #1102 from pi-hole/fix/domains_lower_case
Ensure added domains are lower-case.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user