]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/getsource.pm
404/goto: Fix 404 display of utf-8 pages.
[ikiwiki.git] / IkiWiki / Plugin / getsource.pm
index ae9ea3cc7af4ffe27b46d65528d380420ac5b368..d1555430e82d83bbe61064d04b335cdf48a85317 100644 (file)
@@ -58,7 +58,8 @@ sub cgi_getsource ($) {
 
        if (! exists $pagesources{$page}) {
                IkiWiki::cgi_custom_failure(
-                       $cgi->header(-status => "404 Not Found"),
+                       $cgi,
+                       "404 Not Found",
                        IkiWiki::misctemplate(gettext("missing page"),
                                "<p>".
                                sprintf(gettext("The page %s does not exist."),