Security update for Core, with self-updated composer
[yaffs-website] / vendor / consolidation / output-formatters / src / Transformations / PropertyParser.php
index 18b982ea4d36c0b2afff7ae87621d03ca2af1ff2..ec1616afb3f5a8aa56d2bffd914029ba208bf3ab 100644 (file)
@@ -29,7 +29,9 @@ class PropertyParser
         $lines = explode("\n", $data);
         foreach ($lines as $line) {
             list($key, $value) = explode(':', trim($line), 2) + ['', ''];
-            $result[$key] = trim($value);
+            if (!empty($key) && !empty($value)) {
+                $result[$key] = trim($value);
+            }
         }
         return $result;
     }