From: Hypolite Petovan Date: Sun, 1 Mar 2020 19:19:33 +0000 (-0500) Subject: Add check for semi-colon existence in theme file comment lines X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=39a87b1f5484235afbad809ae5d5d2c7b9c4ebb7;p=friendica.git Add check for semi-colon existence in theme file comment lines - Address https://github.com/friendica/friendica/issues/8000#issuecomment-592946450 --- 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") {