correct message formatting

This commit is contained in:
root 2023-09-23 15:58:57 +02:00
parent 19f52bfb1c
commit fccb7dd511
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class LinuxfooGitea {
$result .=
': '.
'<a href="'.$commit->html_url.'">'.substr($commit->sha, 0, 8).'</a> '.
htmlspecialchars(explode("\n", $commit->message)[0], ENT_NOQUOTES|ENT_HTML5|ENT_SUBSTITUTE, 'UTF-8', FALSE);
htmlspecialchars(preg_replace('/\n.*/', '', $commit->message), ENT_NOQUOTES|ENT_HTML5|ENT_SUBSTITUTE, 'UTF-8', FALSE);
return $result;
}