mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Use preg_split() instead of explode() for better space handling. Skip empty domains in add_to_table() and remove_from_table().
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -24,7 +24,7 @@ if(in_array($list, $check_lists)) {
|
||||
}
|
||||
|
||||
// Split individual domains into array
|
||||
$domains = explode(" ",$_POST['domain']);
|
||||
$domains = preg_split('/\s+/', $_POST['domain']);
|
||||
|
||||
require_once("func.php");
|
||||
require_once("database.php");
|
||||
|
||||
Reference in New Issue
Block a user