diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-12-14 18:07:24 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-12-14 18:07:24 -0500 |
commit | 40078b1781c47228358fd193733d82f0429566eb (patch) | |
tree | 9461df8df440d31d5c22d150fb19a8e4dada82d6 /IkiWiki/Plugin/404.pm | |
parent | 4ee754536d14610580f852d134a842c2cb9a1665 (diff) | |
download | ikiwiki-40078b1781c47228358fd193733d82f0429566eb.tar ikiwiki-40078b1781c47228358fd193733d82f0429566eb.tar.gz |
404: fix utf-8 encoding of REDIRECT_URL
Diffstat (limited to 'IkiWiki/Plugin/404.pm')
-rw-r--r-- | IkiWiki/Plugin/404.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/404.pm b/IkiWiki/Plugin/404.pm index bae9e15d1..85486e559 100644 --- a/IkiWiki/Plugin/404.pm +++ b/IkiWiki/Plugin/404.pm @@ -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); } |