www: Unescape [ and ] in man name to fix 404's with Firefox
This commit is contained in:
parent
95776adf49
commit
25920323c4
1 changed files with 4 additions and 0 deletions
|
|
@ -494,6 +494,10 @@ sub getman {
|
|||
sub man {
|
||||
my($self, $name, $hash) = @_;
|
||||
|
||||
# Firefox seems to escape [ and ] in URLs. It doesn't really have to...
|
||||
$name =~ s/%5b/[/ig;
|
||||
$name =~ s/%5d/]/ig;
|
||||
|
||||
my $m = $self->dbManInfo(name => $name);
|
||||
return $self->resNotFound() if !@$m;
|
||||
my $man = getman($self, $name, $hash, $m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue