mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 11:19:59 +01:00
Replace PREG_SPLIT_NO_EMPTY by using trim().
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 = preg_split('/\s+/', $_POST['domain'], -1, PREG_SPLIT_NO_EMPTY);
|
||||
$domains = preg_split('/\s+/', trim($_POST['domain']));
|
||||
|
||||
require_once("func.php");
|
||||
require_once("database.php");
|
||||
|
||||
Reference in New Issue
Block a user