mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 10:50:23 +01:00
Ensure preg does not output empty array elements.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -17,7 +17,7 @@ if (empty($api)) {
|
||||
}
|
||||
|
||||
// Split individual domains into array
|
||||
$domains = preg_split('/\s+/', $_POST['domain']);
|
||||
$domains = preg_split('/\s+/', $_POST['domain'], -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
||||
require_once("func.php");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user