404: fix utf-8 encoding of REDIRECT_URL
parent
4ee754536d
commit
40078b1781
|
@ -69,7 +69,8 @@ sub cgi ($) {
|
|||
|
||||
if (exists $ENV{REDIRECT_STATUS} &&
|
||||
$ENV{REDIRECT_STATUS} eq '404') {
|
||||
my $page = cgi_page_from_404($ENV{REDIRECT_URL},
|
||||
my $page = cgi_page_from_404(
|
||||
Encode::decode_utf8($ENV{REDIRECT_URL}),
|
||||
$config{url}, $config{usedirs});
|
||||
IkiWiki::Plugin::goto::cgi_goto($cgi, $page);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue