Fix attempts to resolve man pages without name
A bot triggered 'GET /.env', resulting in a lookup on section='env' but no name. Slow and useless...
This commit is contained in:
parent
eecc8e798c
commit
91b43d220b
1 changed files with 1 additions and 1 deletions
|
|
@ -1056,7 +1056,7 @@ sub dbManPrefName {
|
|||
my $man = $s->dbManPref(%o, name => $name);
|
||||
return ($man, '') if $man;
|
||||
|
||||
return (undef, '') if $name !~ s/\.([^.]+)$//;
|
||||
return (undef, '') if $name !~ s/\.([^.]+)$// || !length $name;
|
||||
my $section = $1;
|
||||
$man = $s->dbManPref(%o, name => $name, section => $section);
|
||||
return ($man, $section) if $man;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue