Ensure preg does not output empty array elements.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-08-07 21:44:01 +02:00
parent 07af532b09
commit 838516e558
3 changed files with 2 additions and 10 deletions

View File

@@ -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");