Update htmly.php

This commit is contained in:
Dan 2025-07-04 18:45:35 +07:00
commit f6accb8c6c

View file

@ -294,9 +294,14 @@ get('/author/:name', function ($name) {
if (isset($author[0])) {
$author = $author[0];
} else {
$userConfig = 'config/users/' . $name . '.ini';
if (file_exists($userConfig)) {
$author = default_profile(safe_html(strip_tags($name)));
} else {
not_found();
}
}
$vroot = rtrim(config('views.root'), '/');