]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/goto.pm
404/goto: Fix 404 display of utf-8 pages.
[ikiwiki.git] / IkiWiki / Plugin / goto.pm
index 2e2dc04a111a164745fb628785b509d40e024e6c..439552f62f9d5b3fe97c33d8397a559118e25b71 100644 (file)
@@ -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."),