forked from tk-sls.de/linuxfoo-gitlab
correct message formatting
This commit is contained in:
parent
19f52bfb1c
commit
fccb7dd511
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user