list ($atime, $author, $message) = explode("\t", $line, 3);
list ($author) = explode(' ', $author); # first name only
printf('<li>%s <small class="date">%s • %s</small></li>'."\n",
- $message, $author, strftime('%F %H:%M', $atime)
+ htmlspecialchars($message),
+ htmlspecialchars($author), strftime('%F %H:%M', $atime)
);
$lines++;
}
print "</ul>\n\n";
pclose($log);
- $navbase = $Page == 'login/commits' ? '?' : '/login/commits?';
+ $navbase = $Page->handler == 'login/commits' ? '?' : '/login/commits?';
$nav = [];
$nav[] = sprintf('Pagina %d', ceil($offset / $pagesize) + 1);
if ($lines >= $pagesize) {