From 39a87b1f5484235afbad809ae5d5d2c7b9c4ebb7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 1 Mar 2020 14:19:33 -0500 Subject: [PATCH] Add check for semi-colon existence in theme file comment lines - Address https://github.com/friendica/friendica/issues/8000#issuecomment-592946450 --- src/Core/Theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Theme.php b/src/Core/Theme.php index c17c67c4d9..03f1dfd9cd 100644 --- a/src/Core/Theme.php +++ b/src/Core/Theme.php @@ -98,7 +98,7 @@ class Theme $comment_lines = explode("\n", $matches[0]); foreach ($comment_lines as $comment_line) { $comment_line = trim($comment_line, "\t\n\r */"); - if ($comment_line != "") { + if (strpos($comment_line, ':') !== false) { list($key, $value) = array_map("trim", explode(":", $comment_line, 2)); $key = strtolower($key); if ($key == "author") {