From f20b69f084ec41fc4a9f4321d7b344a71919c499 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 27 Sep 2017 18:29:18 +0200 Subject: [PATCH] Fixed reading feature list (etree) --- lib/api/source/fetch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api/source/fetch.php b/lib/api/source/fetch.php index 065750e..71269c2 100755 --- a/lib/api/source/fetch.php +++ b/lib/api/source/fetch.php @@ -13,10 +13,10 @@ while( !$f->eof() ){ /* (1) Try to parse each line */ - $etree = $f->fgets(); + $etree = trim($f->fgets(), "\n"); /* (2) Manage error */ - if( is_null($etree) ) + if( is_null($etree) || strlen($etree) == 0 ) continue; /* (3) Add entry to log */