summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-01-31 16:51:13 +0000
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-01-31 16:51:13 +0000
commit78d1b2340eeacdad7bcccb9c7fa450ac47728341 (patch)
treecf023d27172cfdd9ef0bf019f0e7e00757f53ceb /IkiWiki
parent5ce3a0130030f3b07e163727f16d212b2fda6259 (diff)
CGI: if the page is missing, give the "missing page" a 404 status
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm2
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."),