diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-12-14 18:16:47 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-12-14 18:16:47 -0500 |
commit | 2bceb10b5fd06e8e0867cbc6d72a16cbaae35803 (patch) | |
tree | e0ce6d985864e7f1db28c0b795c13b417bd54b9c /IkiWiki/Plugin/goto.pm | |
parent | 40078b1781c47228358fd193733d82f0429566eb (diff) | |
download | ikiwiki-2bceb10b5fd06e8e0867cbc6d72a16cbaae35803.tar ikiwiki-2bceb10b5fd06e8e0867cbc6d72a16cbaae35803.tar.gz |
404/goto: Fix 404 display of utf-8 pages.
Problem here was that no charset http header was being sent.
I fixed this globally by making cgi_custom_failure send the header.
Required changing its parameters.
Diffstat (limited to 'IkiWiki/Plugin/goto.pm')
-rw-r--r-- | IkiWiki/Plugin/goto.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/goto.pm b/IkiWiki/Plugin/goto.pm index 2e2dc04a1..439552f62 100644 --- a/IkiWiki/Plugin/goto.pm +++ b/IkiWiki/Plugin/goto.pm @@ -51,7 +51,8 @@ sub cgi_goto ($;$) { if (! length $link) { IkiWiki::cgi_custom_failure( - $q->header(-status => "404 Not Found"), + $q, + "404 Not Found", IkiWiki::misctemplate(gettext("missing page"), "<p>". sprintf(gettext("The page %s does not exist."), |