From: Joey Hess Date: Mon, 14 Dec 2009 23:07:24 +0000 (-0500) Subject: 404: fix utf-8 encoding of REDIRECT_URL X-Git-Tag: 3.20091218~5 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/40078b1781c47228358fd193733d82f0429566eb 404: fix utf-8 encoding of REDIRECT_URL --- 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); }