Fix 500 on "/manpage"

Broken by FU commit a7868f74bf9f3fa9ce8356b8a5d5476269bc9aa9
This commit is contained in:
Yorhel 2025-07-17 12:32:28 +02:00
parent 42d91dc31f
commit 9f9b429ad1

View file

@ -783,7 +783,7 @@ sub man_page($man, $url) {
FU::get qr{/([^/]+)(?:/([0-9a-f]{8}))?} => sub($name, $shorthash=undef) { FU::get qr{/([^/]+)(?:/([0-9a-f]{8}))?} => sub($name, $shorthash=undef) {
$name = normalize_name $name; $name = normalize_name $name;
my($man, $sect) = man_pref_name $name, $shorthash ? SQL 'f.shorthash =', shorthash_to_int $shorthash : 'true'; my($man, $sect) = man_pref_name $name, $shorthash ? SQL 'f.shorthash =', shorthash_to_int $shorthash : RAW 'true';
fu->notfound if !$man->{name}; fu->notfound if !$man->{name};
man_page $man, ManUrl->new( man_page $man, ManUrl->new(