projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ee7545
)
404: fix utf-8 encoding of REDIRECT_URL
author
Joey Hess
<joey@gnu.kitenet.net>
Mon, 14 Dec 2009 23:07:24 +0000
(18:07 -0500)
committer
Joey Hess
<joey@gnu.kitenet.net>
Mon, 14 Dec 2009 23:07:24 +0000
(18:07 -0500)
IkiWiki/Plugin/404.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/404.pm
b/IkiWiki/Plugin/404.pm
index bae9e15d1a67ea8705626d69dc69cdc486e68306..85486e559b0cdfa907d3000ed8f64a3a281d2d69 100644
(file)
--- 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);
}