I have the same problem with double encoded utf8 characters in url's when
deplaying a Mojolicious app under Apache using "PerlResponseHandler
Plack::Handler::Apache2". No problem with morbo or plackup.
I solve the problem with the hack shown below, but I would really like to
know how to solve the problem the "right" way. I am running Debian stable.
Any ideas?
/LarsSoem
$app->hook(before_dispatch => sub {
my $path = shift->req->url->path;
my $str = join('/', map {
uri_unescape($_);
utf8::encode($_) unless utf8::is_utf8($_);
uri_escape($_)
} @{$path->parts});
$str = "/$str" if $path->leading_slash;
$str .= '/' if $path->trailing_slash;
$path->parse($str);
});
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.