www: Unescape [ and ] in man name to fix 404's with Firefox

This commit is contained in:
Yorhel 2012-08-17 14:09:21 +02:00
parent 95776adf49
commit 25920323c4

View file

@ -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);