diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-01-31 16:51:13 +0000 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-01-31 16:51:13 +0000 |
commit | 78d1b2340eeacdad7bcccb9c7fa450ac47728341 (patch) | |
tree | cf023d27172cfdd9ef0bf019f0e7e00757f53ceb /IkiWiki | |
parent | 5ce3a0130030f3b07e163727f16d212b2fda6259 (diff) |
CGI: if the page is missing, give the "missing page" a 404 status
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index f23d44fd6..fe8457262 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -318,7 +318,7 @@ sub cgi_goto ($;$) { my $link = bestlink("", $page); if (! length $link) { - print "Content-type: text/html\n\n"; + print $q->header(-status => "404 Not Found"); print misctemplate(gettext("missing page"), "<p>". sprintf(gettext("The page %s does not exist."), |