Add check for semi-colon existence in theme file comment lines

- Address https://github.com/friendica/friendica/issues/8000#issuecomment-592946450
This commit is contained in:
Hypolite Petovan 2020-03-01 14:19:33 -05:00
parent b1b6533512
commit 39a87b1f54

View file

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