From 04e8a899d4bdd967c3dace401351f7d2fc7ef73b Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 11 Sep 2021 19:26:11 +1000 Subject: [PATCH] Also ignore nodelist lines that are blank --- app/Jobs/NodelistImport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/NodelistImport.php b/app/Jobs/NodelistImport.php index 5c6510d..0197ce0 100644 --- a/app/Jobs/NodelistImport.php +++ b/app/Jobs/NodelistImport.php @@ -103,7 +103,7 @@ class NodelistImport implements ShouldQueue $tocrc .= $line."\r\n"; // Lines beginning with a semicolon(;) are comments - if (preg_match('/^;/',$line) OR ($line == chr(0x1a))) + if ((! $line) OR preg_match('/^;/',$line) OR ($line == chr(0x1a))) continue; // Remove any embedded CR and BOM